Skip to content

Commit d0320eb

Browse files
committed
fix: fix cssnanoOptions format
closes #2395
1 parent 3def765 commit d0320eb

File tree

1 file changed

+4
-3
lines changed
  • packages/@vue/cli-service/lib/config

1 file changed

+4
-3
lines changed

packages/@vue/cli-service/lib/config/css.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ module.exports = (api, options) => {
6060
const needInlineMinification = isProd && !shouldExtract
6161

6262
const cssnanoOptions = {
63-
safe: true,
64-
autoprefixer: { disable: true },
65-
mergeLonghand: false
63+
preset: ['default', {
64+
mergeLonghand: false,
65+
cssDeclarationSorter: false
66+
}]
6667
}
6768
if (options.productionSourceMap && sourceMap) {
6869
cssnanoOptions.map = { inline: false }

0 commit comments

Comments
 (0)