@io-arc/task-service-worker
Create a Service Worker file.
Execute src/sw.js if it exists.
It is created using generateSW of WorkBox.
* There's no watch mode.
Usage#
Or
package.json
Options#
--template, -t#
Create a template to sw.js.
sw.js#
The minimum configuration required for execution.
src/sw.js
The globDirectory and swDest properties, which are required by WorkBox, are ignored even if they are specified because they are generated automatically.
Changing output file name#
Default output file name is sw.js, but you can change the file name.
src/sw.js
Manifest options#
Take a look at WorkBox#generateSW
example
src/sw.js