Closed oguzgelal closed 7 years ago
Sorry, the problem was the exclude: /node_modules/
line, since its being excluded webpack was simply ignoring the css file.
Glad you were able to figure it out @oguzgelal!
Thank you very much @oguzgelal bro. I have been squeezing my brain out trying to figure out what's the problem with my webpack.config file for the last couple of days. Thank god your answer showed up ATLASTTTTT.........such a great relief now..... :):):)
Node version: 8.5.0 npm version: 5.4.2 Operating system: macOS Sierra 10.12.6 Command line used:
npm start -s
Description
Webpack breaks when a css library is imported. In my case, I was trying to install bulma, I imported it in index.js (entry point), and I got this following error:
Steps to reproduce:
1) Install bulma (possibly reproducible with any libraries that you have to include a css file)
2) On index.js:
3) Run:
Solution
Modifying webpack configuration as below solved the issue for me:
From:
To: