score:8

Accepted answer

Use this:

ExtractTextPlugin.extract('style','css?sourceMap&modules&importLoaders=1&localI‌​dentName=[name]__[local]___[hash:base64:5]!sass?sourceMap')

i.e. add the sourceMap param to both css & sass loaders. It said so in sass-loader docs.

score:2

This is how I have my css modules set up:

'css-loader?modules&sourceMap&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!',

Related Query

More Query from same tag