|
|
||
|---|---|---|
| src | ||
| .browserslistrc | ||
| .eslintignore | ||
| .eslintrc.js | ||
| .gitignore | ||
| .prettierrc | ||
| README.md | ||
| babel.config.js | ||
| gulpfile.js | ||
| package-lock.json | ||
| package.json | ||
| roomwithavw-custom.php | ||
| tagscan-external.sh | ||
| tagscan.sh | ||
| yarn.lock | ||
README.md
Features
- JS transpilation, minification with Babel, Terser.
- SASS compilation, css minification.
- HTML file includes.
- Mustache templating
- SVG optimisation.
- BrowserSync.
TODO
- Image optomisation.
Usage
Build Directory
Default build directory is ./build. To change edit gulpfile.js.
HTML File Includes
Uses gulp-file-include - npm.
Include file with:
@@include('./logo.svg')
Files are relative to the include directory: src/includes/.
Mustache Templates
Include a template with:
{{> templates/example}}
Templates are relative to the HTML file and the .mustache extension must be
ommitted.