This lesson is out of date and uses an older version of Babel.
what about the dist/main.css file we can see in your example ? is it going though babel too ?
It is less meaningful as babel is aimed at js, but I'm currently trying to load css files in components, using webpack, with an app running with babel.
Google would not reveal much about it. The main problem I guess is that the css files do not get transpiled to the directory the js files go to. Do you have any feedback about it ?
Hey Ben! The
<link href="dist/main.css" rel="stylesheet"> in
index.html is simply a placeholder for adding styles in a template I use - we never actually wired up styles for this lesson, so I should have removed it from the code; sorry for the confusion!
I hope this helps!
I think this video should be updated to use 5.8.20 of babel or update it to make it work with the current version of babel. Right now it throws an error suggesting that you install babel-cli
I agree - the video is out of date. The latest directions to get Babel 6 working (at the time of me writing this on 04/26/16) are:
All other setup directions from the first video should then work for you.