本文介紹了如何處理來自 gulp-babel 的“代碼生成器對樣式進行優(yōu)化"消息的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
限時送ChatGPT賬號..
我剛剛使用 gulp-babel
到我的 gulp 文件中,如下
I've just employed gulp-babel
to my gulp file with the following
var babel = require('gulp-babel');
return gulp.src(files.concat.js.myModule)
.pipe(babel())
.pipe(concat('myModule.js'))
.pipe(gulp.dest('path/to/js'));
...我得到以下關(guān)于在我的 gulp 輸出中取消優(yōu)化樣式的 Note
:
...and I get the following Note
about deoptimising the styling in my gulp output:
NOTE: The code generator has deoptimised the styling ... as it exceeds the max of "100KB"
這是個問題嗎?
我應(yīng)該以某種方式處理這個問題嗎?
Is this a problem?
Should I be handling this is some way?
推薦答案
原來 compact
選項默認(rèn)設(shè)置為 auto
刪除多余的空白字符和行終止符 [...] 輸入大小 > 100KB".
Turns out the compact
option is set to auto
by default which removes "superfluous whitespace characters and line terminators [...] on input sizes >100KB".
如果這不是你想要的,你可以設(shè)置 compact
選項 為假...
If this is not what you want, you can set the compact
option to false...
.pipe(babel({compact: false}))
這篇關(guān)于如何處理來自 gulp-babel 的“代碼生成器對樣式進行優(yōu)化"消息的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!