# appcache-webpack-plugin-client

> Generate an HTML5 Application Cache for a Webpack build

Latest version **2.1.0** (published 2018-11-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install appcache-webpack-plugin-client
pnpm add appcache-webpack-plugin-client
yarn add appcache-webpack-plugin-client
bun add appcache-webpack-plugin-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2018-11-27 |
| First published | 2017-07-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 122.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | li.zhang |
| Maintainers | lizhang |
| Keywords | webpack, appcache, application, cache, plugin |

## Links

- npm: https://www.npmjs.com/package/appcache-webpack-plugin-client
- Repository: https://github.com/zhangli254804018/appcache-webpack-plugin-client
- Homepage: https://github.com/zhangli254804018/appcache-webpack-plugin-client#readme
- Issues: https://github.com/zhangli254804018/appcache-webpack-plugin-client/issues
- npm.io page: https://npm.io/package/appcache-webpack-plugin-client

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 2.1.0 (latest) — 2018-11-27
- 2.0.2 — 2018-11-27
- 2.0.1 — 2018-11-27
- 2.0.0 — 2018-11-27
- 1.2.330 — 2017-08-06
- 1.2.321 — 2017-07-31
- 1.2.32 — 2017-07-31
- 1.2.31 — 2017-07-31
- 1.2.3 — 2017-07-31
- 1.1.3 — 2017-07-31
- 1.1.21 — 2017-07-31
- 1.1.2 — 2017-07-31
- 1.1.0 — 2017-07-25

## README

# Application Cache plugin for Webpack3/4

## Usage

```javascript

var AppCachePlugin = require('appcache-webpack-plugin-client');

module.exports = {
  plugins: [
      new AppCachePlugin({
      cache: ['../dist'],
      network: null, // No network access allowed!
      fallback: ['index.html', 'error.html'],
      settings: ['prefer-online'],
      exclude: [/.*$/], // Exclude file.txt and all .js files
      output: '../cache/manifest.appcache',
      outpath:'', // Relative path
      excludePath:''  // Remove matching file url
    })
  ]
}
```

```
CACHE MANIFEST
# a385df8c0b9e88367403

CACHE:
../dist/0.js
../dist/0.min.js
../dist/1.js
../dist/img/culb_bg.png
../dist/index.css
../dist/index.js
../dist/index.min.js
../dist/vendor.js
../dist/vendor.min.js
../assets/img/culb_bg.jpg
../assets/img/culb_bg.png
../assets/img/culb_del.png
../assets/img/culb_dot.png
../assets/img/culb_member.png
../assets/img/culb_nav_active.png
../assets/img/culb_product.png
../assets/img/culb_tab.png
../assets/img/load.gif
../assets/img/loading.gif
../assets/img/svg/culb_dot.png

FALLBACK:
index.html
error.html

SETTINGS:
prefer-online






```

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
* `outpath`: Relative path 
* `excludePath`: Remove file path
## License

## Update
* `fixed` Fixed some bug errors about empty files
[MIT](http://www.opensource.org/licenses/mit-license.php)

---
_Source: https://npm.io/package/appcache-webpack-plugin-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
