sfl*_*che 7 javascript gulp babeljs
我刚刚使用gulp-babel了以下内容来使用我的gulp文件
var babel = require('gulp-babel');
return gulp.src(files.concat.js.myModule)
.pipe(babel())
.pipe(concat('myModule.js'))
.pipe(gulp.dest('path/to/js'));
Run Code Online (Sandbox Code Playgroud)
...我得到以下Note关于在我的gulp输出中取消优化样式的内容:
NOTE: The code generator has deoptimised the styling ... as it exceeds the max of "100KB"
Run Code Online (Sandbox Code Playgroud)
这是一个问题吗?
我应该处理这个问题吗?
sfl*_*che 17
事实证明,该compact选项auto默认设置为"输入大小> 100KB"时删除"多余的空格字符和行终止符[...]".
如果这不是您想要的,您可以将compact选项设置为false ...
.pipe(babel({compact: false}))
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12379 次 |
| 最近记录: |