Skip to content

Commit

Permalink
Change Readme to use new Rule.use configuration
Browse files Browse the repository at this point in the history
-A
  • Loading branch information
blainekasten committed Jan 10, 2017
1 parent 78de576 commit e2e6956
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,28 @@ So the recommended configuration for webpack is:
``` javascript
{
module: {
loaders: [
{ test: /\.css$/, exclude: /\.useable\.css$/, loader: "style-loader!css-loader" },
{ test: /\.useable\.css$/, loader: "style-loader/useable!css-loader" }
]
}
rules: [
{
test: /\.css$/,
use: [
{ loader: "style-loader" },
{ loader: "css-loader" },
],
},
{
test: /\.useable\.css$/,
use: [
{
loader: "style-loader",
options: {
useable: true
},
},
{ loader: "css-loader" },
],
},
],
},
}
```

Expand Down

0 comments on commit e2e6956

Please sign in to comment.