[boilerplate] Reduce startup by lazy-loading dependencies
Closed this issue · 1 comments
backflip commented
- Move as many dependencies from the top of
gulpfile.js
into task functions. - Test via
gulpt
, useclean
task since it has the least amount of dependencies:npx gulpt clean
backflip commented
Reduced from Total require(): 4750, Total time: 1.9s
to Total require(): 627, Total time: 258ms
-→ ~90% faster