WARNING: Html manifest is deprecated. This plugin is no longer maintained. Use ember-service-worker
An ember-cli-deploy plugin to generate a html cache manifest and update the manifest attribute of the index.html page.
This plugin creates a html cache manifest file and updates the manifest
attribute on the html
tag of the index.html page. It versions the manifest file using the ember-cli-deploy-revision-data plugin.
To get up and running quickly, do the following:
-
Ensure ember-cli-deploy-build and ember-cli-deploy-revision-data are installed and configured.
-
Install this plugin
$ ember install ember-cli-deploy-html-manifest
- Place the following configuration into
config/deploy.js
ENV['html-manifest'] = {
filename: 'manifest.appcache',
prependPath: 'https://mycdn.com/',
excludePaths: ['index.html'],
includePaths: ['/mobile/'],
network: ['*']
}
- Run the pipeline
$ ember deploy
For detailed information on what plugin hooks are and how they work, please refer to the Plugin Documentation.
configure
didPrepare
The name of the manifest file to be created and refrenced in the html tag manifest
attribute.
Default: 'manifest.appcache'
A funtion that returns the root path to the the manifest file. Is refrenced in the html tag manifest
attribute.
Default:
function(context) {
var revisionKey = context.revisionData && context.revisionData.revisionKey;
return '/revisions/' + revisionKey;
}
An array of paths not to be included in the cache manifest.
Default: ['index.html']
A list of paths to be added to the cache manifest file.
Default: ['/']
A list of paths to be added to the NETWORK section of the cache manifest.
Default: ['*']
The following properties are expected to be present on the deployment context
object:
distDir
(provided by ember-cli-deploy-build)revisionData
(provided by ember-cli-deploy-revision-data)
npm test