【发布时间】:2017-09-08 12:16:33
【问题描述】:
我在我的 js 构建过程中使用 grunt-contrib-uglify,并且非常希望能够从最终构建中排除某些代码部分。
所以看起来像:
/*BuildExcludeBegin*/
Run this code during development, but don't include it in the minified.js
/*BuildExcludeEnd*/
有谁知道 grunt-contrib-uglify 是否可行?
【问题讨论】:
-
您对此有什么解决方案吗?我只是想要同样的东西。
标签: javascript gruntjs grunt-contrib-uglify