From 3bedc83d91f9347cfacac5ea2bf95659d2fa190a Mon Sep 17 00:00:00 2001 From: adajoy <305039615@qq.com> Date: Tue, 8 Jun 2021 10:25:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(taro-mini-runner):=20=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E6=A8=A1=E5=BC=8F=E5=8E=8B=E7=BC=A9css?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 支持开发模式压缩css --- packages/taro-mini-runner/src/webpack/build.conf.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/taro-mini-runner/src/webpack/build.conf.ts b/packages/taro-mini-runner/src/webpack/build.conf.ts index e03e92536557..4332c5e4f0b1 100644 --- a/packages/taro-mini-runner/src/webpack/build.conf.ts +++ b/packages/taro-mini-runner/src/webpack/build.conf.ts @@ -204,11 +204,11 @@ export default (appPath: string, mode, config: Partial): any => { terser ? terser.config : {} ])) } - - if (isCssoEnabled) { - const cssoConfig: any = csso ? csso.config : {} - plugin.cssoWebpackPlugin = getCssoWebpackPlugin([cssoConfig]) - } + } + + if (isCssoEnabled) { + const cssoConfig: any = csso ? csso.config : {} + plugin.cssoWebpackPlugin = getCssoWebpackPlugin([cssoConfig]) } chain.merge({