0.0.12 • Published 7 years ago
webapp-gen v0.0.12
WebApp Generator
An helper for cross browser webapps generation.
Use a Web App Manifest for add-to-home feature, icons generation and cross-browser offline behavior.
Install
$ npm install webapp-gen --save-dev
Quick use
var webapp = require('webapp-gen');
webapp(manifest, options, function() {
console.log('Done!');
});
Simple configuration
- manifest: the Web App Manifest path or its javascript object representation.
- options: a JSON file path or its javascript object representation.
- dist: the path of the webapp.
- src: the bootstrap html filename (default
index.html
) - icon: the image path for icon generation (
false
prevent icons to be created), or- src: the image path.
- path: the sub path where the icons will be placed.
- browser: handle browser mode (boolean).
- ios: handle ios home screen app (boolean).
- chrome: handle chrome progressive web app (boolean).
- windows: handle windows 8/10 home screen app (boolean).
- offline
- serviceWorker: use service workers for offline app usage (boolean).
- appacache: use appacache for offline app usage (boolean).