You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-27
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,18 @@
1
-
# extract text plugin for webpack
1
+
# extract text plugin for webpack 2
2
+
3
+
The API has changed since version 1. For the webpack 1 version, see [the README in the webpack-1 branch](https://github.com/webpack/extract-text-webpack-plugin/blob/webpack-1/README.md).
4
+
5
+
## Install
6
+
7
+
> You can either install it with [npm](https://nodejs.org/en/) or [yarn](https://yarnpkg.com/)
Creates an extracting loader from an existing loader.
83
+
Creates an extracting loader from an existing loader. Supports loaders of type `{ loader: string; query: object }`.
69
84
70
-
*`notExtractLoader` (optional) the loader(s) that should be used when the css is not extracted (i.e. in an additional chunk when `allChunks: false`)
71
-
*`loader` the loader(s) that should be used for converting the resource to a css exporting module.
72
-
*`options`
73
-
*`publicPath` override the `publicPath` setting for this loader.
85
+
*`options.loader: string | object | loader[]`_(required)_ the loader(s) that should be used for converting the resource to a css exporting module
86
+
*`options.fallbackLoader: string | object | loader[]` the loader(s) that should be used when the css is not extracted (i.e. in an additional chunk when `allChunks: false`)
87
+
*`options.publicPath: string` override the `publicPath` setting for this loader
74
88
75
-
There is also an `extract` function on the instance. You should use this if you have more than one ExtractTextPlugin.
89
+
There is also an `extract` function on the instance. You should use this if you have more than one `ExtractTextPlugin`.
76
90
77
91
```javascript
78
92
let ExtractTextPlugin =require('extract-text-webpack-plugin');
0 commit comments