Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 26, 2023. It is now read-only.

Generate an HTML5 Application Cache for a Webpack build

NotificationsYou must be signed in to change notification settings

lettertwo/appcache-webpack-plugin

Repository files navigation

Usage

varAppCachePlugin=require('appcache-webpack-plugin');module.exports={plugins:[newAppCachePlugin({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 filesoutput:'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 compilationthat match any of these patterns will be excluded from the manifest.
  • output: The filename to write the appcache to

License

MIT

About

Generate an HTML5 Application Cache for a Webpack build

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors7


[8]ページ先頭

©2009-2025 Movatter.jp