# @types/sw-precache-webpack-plugin

> TypeScript definitions for sw-precache-webpack-plugin

Latest version **0.11.5** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/sw-precache-webpack-plugin
pnpm add @types/sw-precache-webpack-plugin
yarn add @types/sw-precache-webpack-plugin
bun add @types/sw-precache-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; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.11.5 |
| Published | 2023-11-07 |
| First published | 2018-05-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51440 |
| Maintainers | types |

## Links

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

## Dependencies (2)

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

## Recent versions

- 0.11.5 (latest) — 2023-11-07
- 0.11.2 (ts3.7) — 2021-07-02
- 0.11.0 (ts2.3) — 2018-05-08
- 0.11.4 — 2023-10-18
- 0.11.3 — 2023-09-25
- 0.11.1 — 2021-03-25

## README

# Installation
> `npm install --save @types/sw-precache-webpack-plugin`

# Summary
This package contains type definitions for sw-precache-webpack-plugin (https://github.com/goldhand/sw-precache-webpack-plugin#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sw-precache-webpack-plugin.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sw-precache-webpack-plugin/index.d.ts)
````ts
import { Options as SwPrecacheOptions } from "sw-precache";
import { Plugin } from "webpack";

// workaround to override parent types
interface _Options extends SwPrecacheOptions {
    importScripts?: any;
}

declare namespace SWPrecacheWebpackPlugin {
    interface Options extends _Options {
        filename?: string | undefined;
        filepath?: string | undefined;
        staticFileGlobsIgnorePatterns?: RegExp[] | undefined;
        mergeStaticsConfig?: boolean | undefined;
        minify?: boolean | undefined;

        // override sw-precache options
        importScripts?:
            | Array<
                | string
                | {
                    chunkName?: string | undefined;
                    filename?: string | undefined;
                }
            >
            | undefined;
    }
}

declare class SWPrecacheWebpackPlugin extends Plugin {
    constructor(options?: SWPrecacheWebpackPlugin.Options);
}

export = SWPrecacheWebpackPlugin;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [@types/sw-precache](https://npmjs.com/package/@types/sw-precache), [@types/webpack](https://npmjs.com/package/@types/webpack)

# Credits
These definitions were written by [JounQin](https://github.com/JounQin).

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