Zero-configuration for installing PWA features.
Why it's awesome
Zero-configuration for installing PWA features. Although sw-precache works great as a light-weight tool to quickly install service worker support, it currently does not provide much functionality for installing specific "features".
- Read config from
- Inject preload e prefetch tags on html files
- Generate manifesto.json file
- Generate hashs in scripts and styles files (files)
service-worker.jscall in your
Install with npm
$ npm i pwa-installer
Install with Yarn
$ yarn add pwa-installer
Run with npx (without installing)
$ npx pwa-installer
Note: Install this npm package with the flag
--global for global use. Install with the flag
--save-dev for add the package as a devDependency of your project.
$ pwa-installer --help Usage: $ pwa-installer [<output>] [<options>] Options: -h, --help Display help information -v, --version Output version -c, --config Display help information Examples: $ pwa-installer $ pwa-installer dist/index.html $ pwa-installer dist --config=pwa.config.js
Note: Directory is required
Want to contribute? Follow these recommendations.