@types/extract-text-webpack-plugin
- Version 3.0.10
- Published
- 7.5 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 byextract
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[];
Creates an extracting loader from an existing loader (static). Use the resulting loader in
module.rules
/module.loaders
.See Also
property extract
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 Also
Interfaces
interface LoaderOptions
interface LoaderOptions {}
property fallback
fallback?: Loader | Loader[] | undefined;
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 | undefined;
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 | undefined;
extract from all additional chunks too (by default it extracts only from the initial chunk(s))
property disable
disable?: boolean | undefined;
disables the plugin
property filename
filename: string;
the filename of the result file. May contain
[name]
,[id]
and[contenthash]
property id
id?: string | undefined;
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 oneto 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>
- Updated .
Package analyzed in 894 ms. - Missing or incorrect documentation? Open an issue for this package.