0.1.0 • Published 5 years ago
pwa-installer v0.1.0
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".
Features
- Read config from
pwa.config.js - Inject preload e prefetch tags on html files
- Generate manifesto.json file
- Generate
service-worker.js(files) - Generate hashs in scripts and styles files (files)
- Automate
service-worker.jscall in yourhtmlfiles
Install
Install with npm
$ npm i pwa-installerInstall with Yarn
$ yarn add pwa-installerRun with npx (without installing)
$ npx pwa-installerNote: Install this npm package with the flag -g or --global for global use. Install with the flag -D or --save-dev for add the package as a devDependency of your project.
Usage
$ 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.jsNote: Directory is required
Contributing
Want to contribute? Follow these recommendations.
License
Designed with ♥ by CJ Patoilo. Licensed under the MIT License.