The npx
command will use local or global Gulp CLI. Watch file changes and build assets like so:
$ npx gulp watch
$ NODE_ENV=production npx gulp watch
$ npm run dev
# Alias for
$ npx gulp && npx workbox-cli injectManifest
$ npm run build
# Alias for
$ NODE_ENV=production npx gulp && NODE_ENV=production npx workbox-cli injectManifest
This feature uses svgexport and imagemagick’s convert to create various PNG favicons and a traditional ICO file.
favicon.svg
into the public/favicons directory$ bin/favicons