survivejs / webpack-book

From apprentice to master (CC BY-NC-ND)
https://survivejs.com/webpack/
2.42k stars 319 forks source link

Refreshing CSS - Needs update #93

Closed tyler-morrison closed 8 years ago

tyler-morrison commented 8 years ago

I was trying to follow this section, but kept getting an error whenever I added require('./main.css') to index.js.

After tweaking the default switch case within webpack.config.js to include PATHS.style, I was able to get everything to work properly.

bebraw commented 8 years ago

Thanks for the heads up! I'll get this sorted for the next version.

tyler-morrison commented 8 years ago

My apologies, I believe this may be user error. I encountered a similar issue on the Minifying Build chapter and realized that I was using ES6 syntax within app, despite not having any transpilers in place.

bebraw commented 8 years ago

No probs. Thanks still. :+1: