cache-manifest-webpack-plugin

0.0.1 • Public • Published

Application Cache plugin for Webpack

NOTE: This only exists because we need a feature added and need it on NPM!

Use this instead once PR #1 has been merged.

Usage

 
var AppCachePlugin = require('appcache-webpack-plugin');
 
module.exports = {
  plugins: [
    new AppCachePlugin({
      cache: ['someOtherAsset.jpg'],
      network: null,  // No network access allowed!
      fallback: ['failwhale.jpg'],
      settings: ['prefer-online'],
      exclude: ['file.txt', /.*\.js$/]  // Exclude file.txt and all .js files
    })
  ]
}

Arguments:

  • cache: An array of additional assets to cache.
  • network: An array of assets that may be accessed via the network. Defaults to ['*'].
  • fallback: An array of fallback assets.
  • settings: An array of settings.
  • exclude: An array of strings or regex patterns. Assets in the compilation that match any of these patterns will be excluded from the manifest.

License

MIT

Package Sidebar

Install

npm i cache-manifest-webpack-plugin

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • tomhicks