Skip to content

Commit

Permalink
feat: 初始化项目增加配置
Browse files Browse the repository at this point in the history
  • Loading branch information
jimwmg committed Jul 31, 2020
1 parent e6bff8e commit 03a6508
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/chameleon-templates/project/chameleon.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ cml.config.merge({
}
},
optimize: {
watchNodeModules: true, // 设置为true对于调试 node_modules 里面的内容很有帮助
showWarning: true// 设置为true可以在构建过程中看到警告信息,比如编译过程中引入了同一个npm包的不同版本会在终端输出信息
watchNodeModules: false, // 设置为true对于调试 node_modules 里面的内容很有帮助
showWarning: false,// 设置为true可以在构建过程中看到警告信息,比如编译过程中引入了同一个npm包的不同版本会在终端输出信息
dropConsole: true,//可以配置是否压缩模式下删除调试信息
processBar: true //可以配置是否需要构建进度条
}
})

0 comments on commit 03a6508

Please sign in to comment.