Skip to content

Commit cbd3579

Browse files
committed
perf(css): reenable MergeLonghand CSS optimization
The original issue was fixed in cssnano/cssnano#652 so it's safe to reenable this optimization
1 parent ea58f4a commit cbd3579

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"autoprefixer": "9.4.3",
8181
"conventional-changelog-cli": "^1.3.5",
8282
"css-what": "2.1.0",
83-
"cssnano": "4.1.7",
83+
"cssnano": "4.1.8",
8484
"estree-walker": "0.5.2",
8585
"execa": "^0.8.0",
8686
"exit": "^0.1.2",
@@ -102,7 +102,7 @@
102102
"opn": "5.4.0",
103103
"parse5": "5.1.0",
104104
"pixelmatch": "4.0.2",
105-
"postcss": "7.0.7",
105+
"postcss": "7.0.11",
106106
"puppeteer": "~1.7.0",
107107
"rollup": "0.68.2",
108108
"rollup-plugin-commonjs": "9.2.0",

scripts/helpers/cssnano-preset-default.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const postcssMinifyParams = require('postcss-minify-params');
2727
// const postcssNormalizeCharset = require('postcss-normalize-charset');
2828
const postcssMinifyFontValues = require('postcss-minify-font-values');
2929
const postcssNormalizeUrl = require('postcss-normalize-url');
30-
// const postcssMergeLonghand = require('postcss-merge-longhand');
30+
const postcssMergeLonghand = require('postcss-merge-longhand');
3131
const postcssDiscardDuplicates = require('postcss-discard-duplicates');
3232
// const postcssDiscardOverridden = require('postcss-discard-overridden');
3333
const postcssNormalizeRepeatStyle = require('postcss-normalize-repeat-style');
@@ -80,7 +80,7 @@ module.exports = function defaultPreset (opts = {}) {
8080
[postcssNormalizeRepeatStyle, options.normalizeRepeatStyle],
8181
[postcssNormalizePositions, options.normalizePositions],
8282
[postcssNormalizeWhitespace, options.normalizeWhitespace],
83-
// [postcssMergeLonghand, options.mergeLonghand],
83+
[postcssMergeLonghand, options.mergeLonghand],
8484
[postcssDiscardDuplicates, options.discardDuplicates],
8585
[postcssMergeRules, options.mergeRules],
8686
[postcssDiscardEmpty, options.discardEmpty],

0 commit comments

Comments
 (0)