This is my approach for develop projects using Gulp v4.0. There are multiples approaches and maybe some features in this file are not usefull for you, so feel free for implement your own or to make PRs 😎
Use the package manager yarn to install the dependencies.
yarn
- Live Reload and changes injection with BrowserSync
- SASS for CSS pre-processment
- ES6 syntax transpiling with Babel (for olders browsers versions)
- ESLint with AirBnb style guide
- Images optimization and convertion to Webp google's format
- Others...
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.