File tree 3 files changed +23
-0
lines changed
3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,20 @@ module.exports = {
220
220
} ,
221
221
] ,
222
222
} ,
223
+ {
224
+ test : / \. s c s s $ / ,
225
+ use : [
226
+ 'style-loader' ,
227
+ // Using source maps breaks urls in the CSS loader
228
+ // https://github.com/webpack/css-loader/issues/232
229
+ // This comment solves it, but breaks testing from a local network
230
+ // https://github.com/webpack/css-loader/issues/232#issuecomment-240449998
231
+ // 'css-loader?sourceMap',
232
+ 'css-loader?importLoaders=1&modules&localIdentName=[path]___[name]__[local]___[hash:base64:5]' ,
233
+ 'postcss-loader' ,
234
+ 'sass-loader' ,
235
+ ] ,
236
+ } ,
223
237
// "file" loader makes sure those assets get served by WebpackDevServer.
224
238
// When you `import` an asset, you get its (virtual) filename.
225
239
// In production, they would get copied to the `build` folder.
Original file line number Diff line number Diff line change @@ -235,6 +235,13 @@ module.exports = {
235
235
) ,
236
236
// Note: this won't work without `new ExtractTextPlugin()` in `plugins`.
237
237
} ,
238
+ {
239
+ test : / \. s c s s $ / ,
240
+ loader : ExtractTextPlugin . extract ( {
241
+ fallbackLoader : 'style-loader' ,
242
+ loader : 'css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!postcss-loader!sass-loader' ,
243
+ } ) ,
244
+ } ,
238
245
// "file" loader makes sure assets end up in the `build` folder.
239
246
// When you `import` an asset, you get its filename.
240
247
// This loader don't uses a "test" so it will catch all modules
Original file line number Diff line number Diff line change 44
44
"fs-extra" : " 3.0.1" ,
45
45
"html-webpack-plugin" : " 2.29.0" ,
46
46
"jest" : " 20.0.4" ,
47
+ "node-sass" : " ^4.5.3" ,
47
48
"object-assign" : " 4.1.1" ,
48
49
"postcss-flexbugs-fixes" : " 3.0.0" ,
49
50
"postcss-loader" : " 2.0.6" ,
50
51
"promise" : " 7.1.1" ,
51
52
"react-dev-utils" : " ^3.0.2" ,
52
53
"react-error-overlay" : " ^1.0.9" ,
54
+ "sass-loader" : " ^6.0.6" ,
53
55
"style-loader" : " 0.18.2" ,
54
56
"sw-precache-webpack-plugin" : " 0.11.3" ,
55
57
"url-loader" : " 0.5.9" ,
You can’t perform that action at this time.
0 commit comments