From 854e53911d6ad2f4dc4c2411a934779c59aff6a3 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Mon, 6 Aug 2018 18:15:26 +0100 Subject: [PATCH] refactor: use default preset for cssnano --- lib/builder/webpack/utils/postcss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder/webpack/utils/postcss.js b/lib/builder/webpack/utils/postcss.js index fcb78f7d85..675d3ba5d5 100644 --- a/lib/builder/webpack/utils/postcss.js +++ b/lib/builder/webpack/utils/postcss.js @@ -47,7 +47,7 @@ export default class PostcssConfig { // https://cssdb.org/#staging-process stage: 2 }, - 'cssnano': !this.dev + 'cssnano': this.dev ? false : { preset: 'default' } } } }