From a0ff47fb08728602156a44b26471d196c2bd95db Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Mon, 25 Apr 2022 20:26:51 +0800 Subject: [PATCH] chore(chrome-plugin): update kkt config. --- example/chrome-plugin/.kktrc.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/example/chrome-plugin/.kktrc.js b/example/chrome-plugin/.kktrc.js index 853fd3ac..e3815b85 100644 --- a/example/chrome-plugin/.kktrc.js +++ b/example/chrome-plugin/.kktrc.js @@ -2,7 +2,9 @@ import { CleanWebpackPlugin } from 'clean-webpack-plugin'; import FileManagerPlugin from 'filemanager-webpack-plugin'; export default (conf, env, options) => { - conf.output.publicPath = './'; + if (env === 'production') { + conf.output = { ...conf.output, publicPath: './' }; + } // const regexp = /(HotModuleReplacementPlugin)/; // conf.plugins = conf.plugins // .map((item) => {