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 startedThese 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
BrowserSync
#
Use a Used local server is BrowserSync.
#
Build directory cleanDelete the contents of the output and stats directory.