Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Commit

Permalink
Fix CSS bundle size increase. (#1196)
Browse files Browse the repository at this point in the history
* Compress final CSS output only.
This fixes a performance regression where duplicate CSS ended up in the
final output.

Disable CSS sourcemaps in develop. This improves incremental build
times, and is currently not getting enough use to justify itself.

* Remove unused variable.
  • Loading branch information
threehams authored Jun 6, 2018
1 parent a317884 commit 7461d87
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ Object {
"style-loader",
Object {
"loader": "css-loader",
"options": Object {
"minimize": false,
"sourceMap": false,
},
},
Object {
"loader": "postcss-loader",
Expand All @@ -51,8 +47,6 @@ Object {
"loader": "sass-loader",
"options": Object {
"outputStyle": "expanded",
"sourceMap": false,
"sourceMapContents": true,
},
},
],
Expand Down Expand Up @@ -164,10 +158,6 @@ Object {
"style-loader",
Object {
"loader": "css-loader",
"options": Object {
"minimize": false,
"sourceMap": false,
},
},
Object {
"loader": "postcss-loader",
Expand All @@ -176,8 +166,6 @@ Object {
"loader": "sass-loader",
"options": Object {
"outputStyle": "expanded",
"sourceMap": false,
"sourceMapContents": true,
},
},
],
Expand Down Expand Up @@ -485,10 +473,6 @@ Object {
},
Object {
"loader": "css-loader",
"options": Object {
"minimize": false,
"sourceMap": false,
},
},
Object {
"loader": "postcss-loader",
Expand All @@ -497,8 +481,6 @@ Object {
"loader": "sass-loader",
"options": Object {
"outputStyle": "expanded",
"sourceMap": false,
"sourceMapContents": true,
},
},
],
Expand Down Expand Up @@ -613,10 +595,6 @@ Object {
"style-loader",
Object {
"loader": "css-loader",
"options": Object {
"minimize": false,
"sourceMap": false,
},
},
Object {
"loader": "postcss-loader",
Expand All @@ -625,8 +603,6 @@ Object {
"loader": "sass-loader",
"options": Object {
"outputStyle": "expanded",
"sourceMap": false,
"sourceMapContents": true,
},
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ const progressHandler = require('./progressHandler');
const ChunksPlugin = require('./ChunksPlugin');
const getAliasesForApps = require('./getAliasesForApps');

const isProduction: boolean = process.env.NODE_ENV === 'production';

module.exports = (
logger: Logger,
settings: Object,
Expand Down Expand Up @@ -94,10 +92,6 @@ module.exports = (
'style-loader',
{
loader: `css-loader`,
options: {
sourceMap: !!isProduction,
minimize: !!isProduction,
},
},
{
loader: 'postcss-loader',
Expand All @@ -106,8 +100,6 @@ module.exports = (
loader: 'sass-loader',
options: {
outputStyle: 'expanded',
sourceMap: !!isProduction,
sourceMapContents: true,
},
},
],
Expand Down

0 comments on commit 7461d87

Please sign in to comment.