I'm upgrading webpack to 2.2 on my project and I'm facing an odd issue right now.
Webpack is parsing my JS files without a problem but when it comes to stylesheets - it seems that it ignores the /.css$/ rule in my config and throws an error while trying to parse it. I've updated every possible loader to latest stable version but cant find the bug.
Error that I keep getting:
Module parse failed: /project/src/assets/css/main.css Unexpected token (1:5)
[0] You may need an appropriate loader to handle this file type.
[0] | body {
[0] | background: black;
[0] | }
Link to webpack.config.js is here.
Having CSS as entry point is actually allowed. I actually found the issue - it started working when I removed this line, that includes the dir.