I'd like to be able to see the source selector name mapped into CSS output. Is there any way? What would the webpack loader configuration look like?
+1 @markdalgleish any idea how to do this?
I got this working by adding css?sourceMap and sass?sourceMap to my loader, as follows:
{
test: /\.(css|scss)$/,
exclude: /node_modules/,
loader: 'style!css?sourceMap&modules&localIdentName=[name]__[local]___[hash:base64:5]!sass?sourceMap!autoprefixer'
}
Thanks @hadimichael
Most helpful comment
+1 @markdalgleish any idea how to do this?I got this working by adding
css?sourceMapandsass?sourceMapto my loader, as follows: