Skip to content

Commit 853d511

Browse files
bmattolexun
authored andcommitted
Only use importLoaders for .css files
1 parent 5172d24 commit 853d511

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-scripts/config/webpack.config.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ module.exports = function(publicPath) {
156156
// ZEAL: Add support for CSS Modules and SASS
157157
{
158158
test: /\.css$/,
159-
loader: 'style!css?importLoaders=1&modules=1&url=false!postcss'
159+
loader: 'style!css?importLoaders=1!postcss'
160160
},
161161
{
162162
test: /\.scss$/,

packages/react-scripts/config/webpack.config.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ module.exports = {
155155
// including CSS. This is confusing and will be removed in Webpack 2:
156156
// https://github.com/webpack/webpack/issues/283
157157
// ZEAL: Add support for css modules
158-
loader: ExtractTextPlugin.extract('style', 'css?modules&importLoaders=1&url=false&-autoprefixer!postcss')
158+
loader: ExtractTextPlugin.extract('style', 'css?importLoaders=1&-autoprefixer!postcss')
159159
// Note: this won't work without `new ExtractTextPlugin()` in `plugins`.
160160
},
161161
{

0 commit comments

Comments
 (0)