grunt-tmod
grunt-tmod copied to clipboard
改task里的combo改为false,从html生成的js仍然是压缩的
改task里的combo改为false,从html生成的js仍然是压缩的,如: gulp.task('default', function(){ return gulp.src('./test/tpl/*/.html') .pipe(tmodjs({ base: './test/tpl', combo: false, output: './test/dist' })). pipe(gulp.dest('./dest')); });
请教下是什么问题呢?而且发现grunt版本和gulp版本的都存在这个问题
- https://github.com/lichunqiang/gulp-tmod
- https://github.com/Jsonzhang/grunt-tmod
压缩参数应该是minify来设置的,默认是true,minify:false应该就不会压缩了,参数配置参考https://github.com/aui/tmodjs/#%E9%85%8D%E7%BD%AE