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

source maps? #12

Closed lifeiscontent closed 4 years ago

lifeiscontent commented 9 years ago

Are there source maps that get generated in this project? That's the one thing that is making me hesitant to switch.

patrikholcak commented 9 years ago

Hey @lifeiscontent,

you can enable source maps for both js and css in your webpack config via the devtool property. If you also want to enable css source maps, just add a query parameter sourceMap to css-loader. So it looks something like this css-loader?sourceMap. Hope it helps!