Skip to content

Commit 08eb9fd

Browse files
nhajidinalexdriaguine
authored andcommitted
Update css loader (facebook#1057)
* Update css-loader to 0.26.0 * Update the production webpack config
1 parent bbcf139 commit 08eb9fd

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

Diff for: packages/react-scripts/config/webpack.config.prod.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,7 @@ module.exports = {
142142
// in the main CSS file.
143143
{
144144
test: /\.css$/,
145-
// "?-autoprefixer" disables autoprefixer in css-loader itself:
146-
// https://github.com/webpack/css-loader/issues/281
147-
// We already have it thanks to postcss. We only pass this flag in
148-
// production because "css" loader only enables autoprefixer-powered
149-
// removal of unnecessary prefixes when Uglify plugin is enabled.
150-
// Webpack 1.x uses Uglify plugin as a signal to minify *all* the assets
151-
// including CSS. This is confusing and will be removed in Webpack 2:
152-
// https://github.com/webpack/webpack/issues/283
153-
loader: ExtractTextPlugin.extract('style', 'css?importLoaders=1&-autoprefixer!postcss')
145+
loader: ExtractTextPlugin.extract('style', 'css?importLoaders=1!postcss')
154146
// Note: this won't work without `new ExtractTextPlugin()` in `plugins`.
155147
},
156148
// JSON is not enabled by default in Webpack but both Node and Browserify

Diff for: packages/react-scripts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"chalk": "1.1.3",
3434
"connect-history-api-fallback": "1.3.0",
3535
"cross-spawn": "4.0.2",
36-
"css-loader": "0.25.0",
36+
"css-loader": "0.26.0",
3737
"detect-port": "1.0.1",
3838
"dotenv": "2.0.0",
3939
"eslint": "3.8.1",

0 commit comments

Comments
 (0)