# @types/appcache-webpack-plugin

> TypeScript definitions for appcache-webpack-plugin

Latest version **1.4.5** (published 2023-11-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/appcache-webpack-plugin
pnpm add @types/appcache-webpack-plugin
yarn add @types/appcache-webpack-plugin
bun add @types/appcache-webpack-plugin
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.4.5 |
| Published | 2023-11-06 |
| First published | 2020-04-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51478 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/appcache-webpack-plugin
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/appcache-webpack-plugin
- npm.io page: https://npm.io/package/@types/appcache-webpack-plugin

## Dependencies (1)

- [@types/webpack](https://npm.io/package/@types/webpack.md) ^4

## Recent versions

- 1.4.5 (latest) — 2023-11-06
- 1.4.2 (ts3.7) — 2021-07-07
- 1.4.0 (ts2.8) — 2020-04-27
- 1.4.4 — 2023-10-17
- 1.4.3 — 2023-09-22
- 1.4.1 — 2021-03-25

## README

# Installation
> `npm install --save @types/appcache-webpack-plugin`

# Summary
This package contains type definitions for appcache-webpack-plugin (https://github.com/lettertwo/appcache-webpack-plugin).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/appcache-webpack-plugin.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/appcache-webpack-plugin/index.d.ts)
````ts
import webpack = require("webpack");

/**
 * Generate an HTML5 Application Cache for a Webpack build
 */
declare class AppCachePlugin extends webpack.Plugin {
    AppCache: AppCachePlugin.AppCache;
    constructor(options?: AppCachePlugin.Options);
}

declare namespace AppCachePlugin {
    interface Options {
        /**
         * 'additional assets to cache
         */
        cache?: string[] | undefined;
        /**
         * Assets that may be accessed via the network.
         * @default ['*']
         */
        network?: string[] | null | undefined;
        /**
         * Fallback assets
         */
        fallback?: string[] | undefined;
        /**
         * Settings
         */
        settings?: string[] | undefined;
        /**
         * Assets in the compilation that match any of these patterns will be excluded from the manifest.
         * @default []
         */
        exclude?: Array<string | RegExp> | undefined;
        /**
         * The filename to write the appcache to
         * @default 'manifest.appcache'
         */
        output?: string | undefined;
        /**
         * @default ''
         */
        comment?: string | undefined;
    }

    class AppCache {
        constructor(
            cache: string,
            network: string[],
            fallback: string[],
            settings: string[],
            hash: string,
            comment: string,
        );
        addAsset(asset: string): void;
        size(): number;
        getManifestBody(): string;
        source(): string;
    }
}

export = AppCachePlugin;

````

### Additional Details
 * Last updated: Mon, 06 Nov 2023 22:41:04 GMT
 * Dependencies: [@types/webpack](https://npmjs.com/package/@types/webpack)

# Credits
These definitions were written by [Piotr Błażejewicz](https://github.com/peterblazejewicz).

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