File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -147,11 +147,19 @@ module.exports = function(publicPath) {
147
147
// "style" loader turns CSS into JS modules that inject <style> tags.
148
148
// In production, we use a plugin to extract that CSS to a file, but
149
149
// in development "style" loader enables hot editing of CSS.
150
- // ZEAL: Add support for CSS Modules
150
+ // ZEAL: Add support for CSS Modules and SASS
151
151
{
152
152
test : / \. c s s $ / ,
153
153
loader : 'style!css?importLoaders=1&modules=1!postcss'
154
154
} ,
155
+ {
156
+ test : / \. s c s s $ / ,
157
+ loaders : [
158
+ 'style' ,
159
+ 'css?modules&importLoaders=1' +
160
+ '&localIdentName=[path][local]__[hash:base64:5]!sass'
161
+ ]
162
+ } ,
155
163
// JSON is not enabled by default in Webpack but both Node and Browserify
156
164
// allow it implicitly so we also enable it.
157
165
{
Original file line number Diff line number Diff line change 53
53
"http-proxy-middleware" : " 0.17.2" ,
54
54
"jest" : " 16.0.2" ,
55
55
"json-loader" : " 0.5.4" ,
56
+ "node-sass" : " ^3.13.0" ,
56
57
"object-assign" : " 4.1.0" ,
57
58
"path-exists" : " 2.1.0" ,
58
59
"postcss-loader" : " 1.0.0" ,
59
60
"promise" : " 7.1.1" ,
60
61
"react-dev-utils" : " ^0.3.0" ,
61
62
"recursive-readdir" : " 2.1.0" ,
62
63
"rimraf" : " 2.5.4" ,
64
+ "sass-loader" : " ^4.0.2" ,
63
65
"strip-ansi" : " 3.0.1" ,
64
66
"style-loader" : " 0.13.1" ,
65
67
"url-loader" : " 0.5.7" ,
You can’t perform that action at this time.
0 commit comments