Lesson 18-20: Transform gulp pipeline to use ESM (to fix issue with `gulp-imagemin`) · Issue #40 · Andy-set-studio/learneleventyfromscratch.com · GitHub
gulp-imagemin in its latest version is now ESM only (see also #24 ). In my personal project I have changed the gulp pipeline to use ESM and was able to update all dependencies to their latest versions. I want to leave my code here for an...
How to train your Gulpfile to know about environment configurations
“I want to write a Gulpfile that I can use for development and production, so that I can conditionally execute tasks like minifying. I have done this before by duplicating tasks, but it doesn’t feel right because I want my gulpfile to be as DRY as possible. Also, the company I work for has several websites that each need to a build file, which has already proven to be a maintenance nightmare. I also worry that adding complexity will create tech debt for my team, so I want to use common conventions in my Gulpfile’s API that just work.” — every developer