Skip to content

Commit 68f9702

Browse files
authored
Merge pull request #369 from michael-ciniawsky/readme
docs(README): update examples to reflect the new syntax
2 parents 13c72b2 + d51f4d8 commit 68f9702

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ module.exports = {
3333
rules: [
3434
{
3535
test: /\.css$/,
36-
loader: ExtractTextPlugin.extract({
36+
use: ExtractTextPlugin.extract({
3737
fallbackLoader: "style-loader",
38-
loader: "css-loader"
38+
use: "css-loader"
3939
})
4040
}
4141
]
@@ -81,7 +81,7 @@ new ExtractTextPlugin(options: filename | object)
8181
ExtractTextPlugin.extract(options: loader | object)
8282
```
8383

84-
Creates an extracting loader from an existing loader. Supports loaders of type `{ loader: string; query: object }`.
84+
Creates an extracting loader from an existing loader. Supports loaders of type `{ loader: [name]-loader -> {String}, options: {} -> {Object} }`.
8585

8686
|Name|Type|Description|
8787
|:--:|:--:|:----------|
@@ -106,11 +106,11 @@ module.exports = {
106106
use: [
107107
{
108108
test: /\.css$/,
109-
loader: extractCSS.extract([ 'css-loader', 'postcss-loader' ])
109+
use: extractCSS.extract([ 'css-loader', 'postcss-loader' ])
110110
},
111111
{
112112
test: /\.html$/i,
113-
loader: extractLESS.extract([ 'css-loader', 'less-loader' ])
113+
use: extractLESS.extract([ 'css-loader', 'less-loader' ])
114114
},
115115
]
116116
},

0 commit comments

Comments
 (0)