javascript – 在Grunt中禁用缩小(Yeoman)

前端之家收集整理的这篇文章主要介绍了javascript – 在Grunt中禁用缩小(Yeoman)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我最近开始通过Yeoman使用GruntJS,我喜欢Javascript缩小的想法,但它在开发过程中遇到了困难.我试图在Gruntfile中以不同的组合禁用uglify,usemin等,但是一切似乎都依赖于另一件事并打破了这个过程.有没有简单的方法来禁用缩小?我使用Yeoman提供的最新版本的Grunt,我发现旧的解决方案与使用Yeoman的用户有不同的Gruntfile设置.

这是我的Gruntfile:

// Reads HTML for usemin blocks to enable smart builds that automatically
// concat,minify and revision files. Creates configurations in memory so
// additional tasks can operate on them
useminPrepare: {
  options: {
    dest: '<%= config.dist %>'
  },html: '<%= config.app %>/index.html'
},

http://hastebin.com/gicabukojo.js

最佳答案
这个评论块在你的Gruntfile中:

// By default,your `index.html`'s  原文链接:https://www.f2er.com/js/428910.html

猜你在找的JavaScript相关文章