Static site workflow using GULP 4 with Sass, Imagemin, SVG sprites and Nunjucks.
publiccontains all the compiledcssandjsfiles.pagesandtemplatescontain all the nunjucks layout files and partials. Any new view should be added topages.
- Node.js (>=6.0.0)
- Gulp
The major dependency is Node.js including the Node.js package manager called npm. The other dependencies can be installed with npm.
This project uses Gulp for its build system, with convenient methods for working with the project. It's how we compile and minify our code, add vendor prefixes, optimize images, build for production and more.
Using the above mentioned package manager, installing gulp is as easy as entering this into your terminal:
npm install --global gulp-cli
1. Run npm install
2. Run gulp
3. ????
4. PROFIT!
- Production ready files can be built using
gulp --env production - Building image files or SVG sprites can be done using either
gulp imagesorgulp icons
- ️️☑️ Document all mixins