grunt-tmod icon indicating copy to clipboard operation
grunt-tmod copied to clipboard

改task里的combo改为false,从html生成的js仍然是压缩的

Open c2ye opened this issue 10 years ago • 1 comments

改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

c2ye avatar Jan 27 '15 15:01 c2ye

压缩参数应该是minify来设置的,默认是true,minify:false应该就不会压缩了,参数配置参考https://github.com/aui/tmodjs/#%E9%85%8D%E7%BD%AE

caoren avatar Aug 03 '15 10:08 caoren