We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6cc0f77 + abf7895 commit 88edce3Copy full SHA for 88edce3
tools/webpack.config.js
@@ -76,8 +76,16 @@ const config = {
76
test: /\.scss$/,
77
loaders: [
78
'isomorphic-style-loader',
79
- `css-loader?${DEBUG ? 'sourceMap&' : 'minimize&'}modules&localIdentName=` +
80
- `${DEBUG ? '[name]_[local]_[hash:base64:3]' : '[hash:base64:4]'}`,
+ `css-loader?${JSON.stringify({
+ sourceMap: DEBUG,
81
+
82
+ // CSS Modules https://github.com/css-modules/css-modules
83
+ modules: true,
84
+ localIdentName: DEBUG ? '[name]_[local]_[hash:base64:3]' : '[hash:base64:4]',
85
86
+ // CSS Nano http://cssnano.co/options/
87
+ minimize: !DEBUG,
88
+ })}`,
89
'postcss-loader?parser=postcss-scss',
90
],
91
}, {
0 commit comments