css-modules / webpack-demo

Working demo of CSS Modules, using Webpack's css-loader in module mode
https://css-modules.github.io/webpack-demo/
1.49k stars 180 forks source link

Demo out of date? #36

Closed mikeaustin closed 2 years ago

mikeaustin commented 7 years ago

Last updated 2 years ago. I'm unsuccessfully trying to add css-modules to a simple project.

ERROR in ./src/client/app/index.jsx Module not found: Error: Can't resolve 'style' in '/Library/WebServer/Documents/www.mike-austin.com/models' BREAKING CHANGE: It's no longer allowed to omit the '-loader' suffix when using loaders. You need to specify 'style-loader' instead of 'style', see https://webpack.js.org/guides/migrating/#automatic-loader-module-name-extension-removed @ ./src/client/app/index.jsx 13:14-37

arkilis commented 7 years ago

The tutorial is out of date already.

mojoaxel commented 7 years ago

Needs to be updated to Webpack 3.