lettertwo / appcache-webpack-plugin

Generate an HTML5 Application Cache for a Webpack build
206 stars 36 forks source link
appcache webpack

Application Cache plugin for Webpack

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
      output: 'my-manifest.appcache'
    })
  ]
}

Arguments:

License

MIT