# @types/extract-text-webpack-plugin

> TypeScript definitions for extract-text-webpack-plugin

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

## Install

```sh
npm install @types/extract-text-webpack-plugin
pnpm add @types/extract-text-webpack-plugin
yarn add @types/extract-text-webpack-plugin
bun add @types/extract-text-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 | 3.0.10 |
| Published | 2023-11-07 |
| First published | 2016-11-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51427 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 3.0.10 (latest) — 2023-11-07
- 3.0.7 (ts3.8) — 2021-12-16
- 3.0.6 (ts3.7) — 2021-07-06
- 3.0.4 (ts2.3) — 2019-02-13
- 3.0.1 (ts2.2) — 2018-02-13
- 3.0.0 (ts2.0) — 2017-10-03
- 3.0.9 — 2023-10-18
- 3.0.8 — 2023-09-23
- 3.0.5 — 2021-03-25
- 3.0.3 — 2018-05-09
- 3.0.2 — 2018-03-10
- 2.1.0 — 2017-05-22
- 2.0.1 — 2017-03-08
- 2.0.0 — 2016-11-15

## README

# Installation
> `npm install --save @types/extract-text-webpack-plugin`

# Summary
This package contains type definitions for extract-text-webpack-plugin (https://github.com/webpack-contrib/extract-text-webpack-plugin).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/extract-text-webpack-plugin.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/extract-text-webpack-plugin/index.d.ts)
````ts
import { Loader, Plugin } from "webpack";

export = ExtractTextPlugin;

/**
 * Use an `ExtractTextPlugin` instance and a loader returned by `extract` in concert to write files to disk instead of loading them into others.
 * Usage example at https://github.com/webpack/extract-text-webpack-plugin#usage-example-with-css
 */
declare class ExtractTextPlugin extends Plugin {
    /** Create a plugin instance defining the extraction target file(s) for the files loaded by `extract` */
    constructor(options: string | ExtractTextPlugin.PluginOptions);
    /**
     * Creates an extracting loader from an existing loader (static).
     * Use the resulting loader in `module.rules`/`module.loaders`.
     * @see {@link https://www.npmjs.com/package/extract-text-webpack-plugin#extract}
     */
    static extract: (loader: Loader | Loader[] | ExtractTextPlugin.LoaderOptions) => Loader[];
    /**
     * Creates an extracting loader from an existing loader (instance).
     * Use the resulting loader in `module.rules`/`module.loaders`.
     * @see {@link https://www.npmjs.com/package/extract-text-webpack-plugin#multiple-instances}
     */
    extract: (loader: Loader | Loader[] | ExtractTextPlugin.LoaderOptions) => Loader[];
}

declare namespace ExtractTextPlugin {
    interface PluginOptions {
        /** the filename of the result file. May contain `[name]`, `[id]` and `[contenthash]` */
        filename: string;
        /** extract from all additional chunks too (by default it extracts only from the initial chunk(s)) */
        allChunks?: boolean | undefined;
        /** disables the plugin */
        disable?: boolean | undefined;
        /** Unique ident for this plugin instance. (For advanced usage only, by default automatically generated) */
        id?: string | undefined;
    }
    interface LoaderOptions {
        /** the loader(s) that should be used for converting the resource to a css exporting module */
        use: Loader | Loader[];
        /** the loader(s) that should be used when the css is not extracted (i.e. in an additional chunk when `allChunks: false`) */
        fallback?: Loader | Loader[] | undefined;
        /** override the `publicPath` setting for this loader */
        publicPath?: string | undefined;
    }
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: [@types/webpack](https://npmjs.com/package/@types/webpack)

# Credits
These definitions were written by [flying-sheep](https://github.com/flying-sheep), and [kayo](https://github.com/katyo).

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