Home

Awesome

appcache-webpack-plugin-plus

Derived from the original appcache-webpack-plugin, but updated and converted to Typescript.

Usage

// Note the `.default`!
const AppcachePlugin = require('appcache-webpack-plugin-plus').default

module.exports = {
  plugins: [
    new AppcachePlugin({
      cache: ['someOtherAsset.jpg'],
      network: [],  // 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: