Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
93
rated 0 times [  99] [ 6]  / answers: 1 / hits: 21880  / 9 Years ago, tue, june 16, 2015, 12:00:00

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'));


...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


Is this a problem?

Should I be handling this is some way?


More From » gulp

 Answers
4

Turns out the compact option is set to auto by default which removes superfluous whitespace characters and line terminators [...] on input sizes >100KB.



If this is not what you want, you can set the compact option to false...



.pipe(babel({compact: false}))

[#66184] Sunday, June 14, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
miles

Total Points: 256
Total Questions: 111
Total Answers: 104

Location: Benin
Member since Fri, Mar 24, 2023
1 Year ago
;