修改统计出现的bug

This commit is contained in:
lemon橪
2021-09-02 15:01:54 +08:00
parent b829d2cd05
commit 6d5428317f
8 changed files with 14 additions and 16 deletions

View File

@@ -10,7 +10,7 @@ const resolve = dir => {
* 将开发环境中替换为本地的内容方便处理bug以及开启vueDev
* 我们可以根据环境变量进行相应的处理只有在产品的时候才让插件去自动注入相应的资源文件到html页面
*/
const enableCDN = process.env.NODE_ENV === "production"; // 是否生产环境
const enableProduction = process.env.NODE_ENV === "production"; // 是否生产环境
let externals = {
vue: "Vue",
@@ -62,8 +62,8 @@ let jsPlugin = [
})
];
// 判断是否需要加载CDN
cdn = enableCDN ? cdn : { css: [], js: [] };
externals = enableCDN ? externals : {};
cdn = enableProduction ? cdn : { css: [], js: [] };
externals = enableProduction ? externals : {};
jsPlugin = enableProduction ? jsPlugin : [];
module.exports = {