From 446a880b606262a284d5dc0201ae2a215ade155f Mon Sep 17 00:00:00 2001 From: Nazim Hajidin Date: Thu, 17 Nov 2016 20:08:15 -0500 Subject: [PATCH 1/2] Update css-loader to 0.26.0 --- packages/react-scripts/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index b4cad963979..3bad0b428f5 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -33,7 +33,7 @@ "chalk": "1.1.3", "connect-history-api-fallback": "1.3.0", "cross-spawn": "4.0.2", - "css-loader": "0.25.0", + "css-loader": "0.26.0", "detect-port": "1.0.1", "dotenv": "2.0.0", "eslint": "3.8.1", From e4d662c56f9f9c8dd0eb4cbdd11f8cff69c0f121 Mon Sep 17 00:00:00 2001 From: Nazim Hajidin Date: Thu, 17 Nov 2016 20:11:20 -0500 Subject: [PATCH 2/2] Update the production webpack config --- packages/react-scripts/config/webpack.config.prod.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/react-scripts/config/webpack.config.prod.js b/packages/react-scripts/config/webpack.config.prod.js index e0141b851b4..18da92caef7 100644 --- a/packages/react-scripts/config/webpack.config.prod.js +++ b/packages/react-scripts/config/webpack.config.prod.js @@ -142,15 +142,7 @@ module.exports = { // in the main CSS file. { test: /\.css$/, - // "?-autoprefixer" disables autoprefixer in css-loader itself: - // https://github.com/webpack/css-loader/issues/281 - // We already have it thanks to postcss. We only pass this flag in - // production because "css" loader only enables autoprefixer-powered - // removal of unnecessary prefixes when Uglify plugin is enabled. - // Webpack 1.x uses Uglify plugin as a signal to minify *all* the assets - // including CSS. This is confusing and will be removed in Webpack 2: - // https://github.com/webpack/webpack/issues/283 - loader: ExtractTextPlugin.extract('style', 'css?importLoaders=1&-autoprefixer!postcss') + loader: ExtractTextPlugin.extract('style', 'css?importLoaders=1!postcss') // Note: this won't work without `new ExtractTextPlugin()` in `plugins`. }, // JSON is not enabled by default in Webpack but both Node and Browserify