@types/extract-text-webpack-plugin

  • Version 3.0.5
  • Published
  • 5.27 kB
  • 1 dependency
  • MIT license

Install

npm i @types/extract-text-webpack-plugin
yarn add @types/extract-text-webpack-plugin
pnpm add @types/extract-text-webpack-plugin

Overview

TypeScript definitions for extract-text-webpack-plugin

Index

Classes

class ExtractTextPlugin

class ExtractTextPlugin extends Plugin {}
  • 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

constructor

constructor(options: string | ExtractTextPlugin.PluginOptions);
  • Create a plugin instance defining the extraction target file(s) for the files loaded by extract

property extract

static extract: (
loader: Loader | Loader[] | ExtractTextPlugin.LoaderOptions
) => Loader[];

property extract

extract: (
loader: Loader | Loader[] | ExtractTextPlugin.LoaderOptions
) => Loader[];

Interfaces

interface LoaderOptions

interface LoaderOptions {}

    property fallback

    fallback?: Loader | Loader[];
    • the loader(s) that should be used when the css is not extracted (i.e. in an additional chunk when allChunks: false)

    property publicPath

    publicPath?: string;
    • override the publicPath setting for this loader

    property use

    use: Loader | Loader[];
    • the loader(s) that should be used for converting the resource to a css exporting module

    interface PluginOptions

    interface PluginOptions {}

      property allChunks

      allChunks?: boolean;
      • extract from all additional chunks too (by default it extracts only from the initial chunk(s))

      property disable

      disable?: boolean;
      • disables the plugin

      property filename

      filename: string;
      • the filename of the result file. May contain [name], [id] and [contenthash]

      property id

      id?: string;
      • Unique ident for this plugin instance. (For advanced usage only, by default automatically generated)

      Package Files (1)

      Dependencies (1)

      Dev Dependencies (0)

      No dev dependencies.

      Peer Dependencies (0)

      No peer dependencies.

      Badge

      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/extract-text-webpack-plugin.

      • Markdown
        [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/extract-text-webpack-plugin)
      • HTML
        <a href="https://www.jsdocs.io/package/@types/extract-text-webpack-plugin"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>