3 ms·
I would suggest adding FrontMatter [1], which will try to read a so-called YAML-header from the file, which is ignored later by gulp. You can combine it with g
by drinchev 12y ago
I would suggest adding FrontMatter [1], which will try to read a so-called YAML-header from the file, which is ignored later by gulp.
You can combine it with gulp-if, to isolate those files that need compilation.
1: https://www.npmjs.com/package/gulp-front-matter https://www.npmjs.com/package/gulp-front-matter
- joshstrange 12y agoOooo, I haven't seem that, that's pretty neat. If our current method doesn't end up working out (been doing well for over a month now) and/or I get the time to address the initial 30 sec build then I will look into this. My only concern is our sourcemaps which have been.... finicky... at best. They work fine now that I've got them working but I had a hard time getting them to correctly spit everything out. Adding YAML to the files the yanking it out may have adverse effects on our sourcemaps but the only way to know is to try it out! Thanks for the suggestion, I've got it bookmarked now!