Need help with appcache-webpack-plugin?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

lettertwo
203 Stars 34 Forks 55 Commits 11 Opened issues

Description

Generate an HTML5 Application Cache for a Webpack build

Services available

!
?

Need anything else?

Contributors list

# 46,603
appcach...
Webpack
React
gatsby
33 commits
# 472,038
JavaScr...
appcach...
Webpack
5 commits
# 355,729
CSS
appcach...
databas...
node-js
2 commits
# 24,983
React
Redux
scaffol...
react-b...
2 commits
# 78,066
appcach...
Webpack
Shell
CSS
1 commit
# 132,657
Objecti...
Shell
appcach...
Webpack
1 commit
# 62,283
Webpack
C
Less
tradfri
1 commit

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:

  • 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.
  • output
    : The filename to write the appcache to

License

MIT

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.