Skip to content

Commit

Permalink
Update code-splitting-css.md
Browse files Browse the repository at this point in the history
Updated doc with new syntax, using "use" and "options", instead of loader and in-line text options.
  • Loading branch information
sajidali authored Jan 31, 2017
1 parent a42ced1 commit 7514621
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions content/guides/code-splitting-css.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Adapting from the previous example with the `css-loader`, we should add `Extract

```javascript
...
loader: ExtractTextPlugin.extract('css-loader?sourceMap') //Can be used without sourcemaps too.
use: ExtractTextPlugin.extract({loader:'css-loader',options:{sourceMap:true}) //Can be used without sourcemaps too.
...
```
Expand Down Expand Up @@ -77,8 +77,11 @@ module.exports = function () {
rules: [{
test: /\.css$/,
exclude: /node_modules/,
loader: ExtractTextPlugin.extract({
loader: 'css-loader?sourceMap'
use: ExtractTextPlugin.extract({
loader: 'css-loader',
options: {
sourceMap: true
}
})
}]
},
Expand Down

0 comments on commit 7514621

Please sign in to comment.