style(vue.config): 给控制台日志添加前缀标识
统一修改vue.config.js里的console日志,添加[vue.config]前缀便于识别
This commit is contained in:
@@ -451,7 +451,7 @@ class VersionInjectPlugin {
|
||||
module.exports = {
|
||||
productionSourceMap: false,
|
||||
configureWebpack: config => {
|
||||
console.log('config.mode = ', config.mode);
|
||||
console.log('[vue.config] config.mode = ', config.mode);
|
||||
|
||||
// lang/ 目录排除: 仅在 remote-only 模式下生效
|
||||
// 原理: webpack 把 require(`@/lang/${lang}/${path}.js`) 解析为 ContextModule,
|
||||
@@ -507,7 +507,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
if (config.mode === 'production') {
|
||||
console.log('开始尝试配置极限压缩');
|
||||
console.log('[vue.config] 开始尝试配置极限压缩');
|
||||
|
||||
if (process.env.UNI_PLATFORM === 'mp-weixin') {
|
||||
// 配置zion-uniapp-mp-load-package插件
|
||||
@@ -595,7 +595,7 @@ module.exports = {
|
||||
};
|
||||
|
||||
config.optimization.minimizer[terserPluginIndex].options.terserOptions = terserOptions;
|
||||
console.log('配置极限压缩完成');
|
||||
console.log('[vue.config] 配置极限压缩完成');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user