Skip to content

Commit 4b6cab5

Browse files
committed
small fixes
1 parent 9bbf3fb commit 4b6cab5

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

config/webpack.config.dev.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,9 @@ module.exports = {
244244
use: getStyleLoaders({
245245
importLoaders: 1,
246246
modules: true,
247-
getLocalIdent: getCSSModuleLocalIdent,
247+
// TODO: This is in a future react-dev-utils version
248+
// It should be enabled when react-dev-utils is updated
249+
// getLocalIdent: getCSSModuleLocalIdent,
248250
}),
249251
},
250252
// Opt-in support for SASS (using .scss or .sass extensions).
@@ -265,7 +267,9 @@ module.exports = {
265267
{
266268
importLoaders: 2,
267269
modules: true,
268-
getLocalIdent: getCSSModuleLocalIdent,
270+
// TODO: This is in a future react-dev-utils
271+
// It should be enabled when react-dev-utils is updated
272+
// getLocalIdent: getCSSModuleLocalIdent,
269273
},
270274
'sass-loader'
271275
),

config/webpack.config.prod.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@ module.exports = {
252252
importLoaders: 1,
253253
sourceMap: shouldUseSourceMap,
254254
modules: true,
255-
getLocalIdent: getCSSModuleLocalIdent,
255+
// TODO: This is in a future react-dev-utils version
256+
// It should be enabled when react-dev-utils is updated
257+
// getLocalIdent: getCSSModuleLocalIdent,
256258
}),
257259
},
258260
// Opt-in support for SASS. The logic here is somewhat similar
@@ -280,7 +282,9 @@ module.exports = {
280282
importLoaders: 2,
281283
sourceMap: shouldUseSourceMap,
282284
modules: true,
283-
getLocalIdent: getCSSModuleLocalIdent,
285+
// TODO: This is in a future react-dev-utils version
286+
// It should be enabled when react-dev-utils is updated
287+
// getLocalIdent: getCSSModuleLocalIdent,
284288
},
285289
'sass-loader'
286290
),

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,17 @@
3636
"fs-extra": "3.0.1",
3737
"html-webpack-plugin": "2.29.0",
3838
"jest": "20.0.4",
39+
"node-sass-chokidar": "^1.3.3",
3940
"object-assign": "4.1.1",
4041
"postcss-flexbugs-fixes": "3.2.0",
4142
"postcss-loader": "2.0.8",
43+
"postcss-preset-env": "^6.0.7",
4244
"promise": "8.0.1",
4345
"raf": "3.4.0",
44-
"source-map-loader": "^0.2.1",
4546
"react-dev-utils": "^5.0.2",
4647
"resolve": "1.6.0",
48+
"sass-loader": "^7.1.0",
49+
"source-map-loader": "^0.2.1",
4750
"style-loader": "0.19.0",
4851
"sw-precache-webpack-plugin": "0.11.4",
4952
"ts-jest": "22.0.1",

0 commit comments

Comments
 (0)