Skip to content

Commit

Permalink
fix: fix cssnanoOptions format
Browse files Browse the repository at this point in the history
closes #2395
  • Loading branch information
sodatea committed Sep 9, 2018
1 parent 3def765 commit d0320eb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/@vue/cli-service/lib/config/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ module.exports = (api, options) => {
const needInlineMinification = isProd && !shouldExtract

const cssnanoOptions = {
safe: true,
autoprefixer: { disable: true },
mergeLonghand: false
preset: ['default', {
mergeLonghand: false,
cssDeclarationSorter: false
}]
}
if (options.productionSourceMap && sourceMap) {
cssnanoOptions.map = { inline: false }
Expand Down

0 comments on commit d0320eb

Please sign in to comment.