Overview
A build task that can be used regardless of the CLI answer.
$ npm run XXX is a script that is initially set in package.json#scripts.
In all cases, files with underscores at the beginning are excluded from the build.
Getting started#
These commands include the following builds.
- Clean to output & stats directory (exc. Watch build)
- HTML/CSS/JS (using webpack)
- Copy for static files
- Create a manifest.json
- Create a Service Worker
- YAML to JSON conversion
Use a BrowserSync#
Used local server is BrowserSync.
Build directory clean#
Delete the contents of the output and stats directory.