0.3.2 • Published 7 years ago
webpack-plugin-inject-service-worker v0.3.2
webpack-plugin-inject-service-worker
Inject service worker register code automatic, cooperate with html-webpack-plugin
. just consider it within personal project.
Options
options.position
Two available position: head-bottom
, body-bottom
.
options.delay
Whether delay service worker register time, to avoid bandwidth competition. Boolean or number millseconds.
options.swPath
The service worker file path.
options.swScope
The register scope.
Usage
# or npm install webpack-plugin-inject-service-worker --only=dev;
yarn add webpack-plugin-inject-service-worker --dev;
License
MIT