Skip to content

Commit 38e4224

Browse files
committed
Update readme to fit webpack v2
1 parent a8ffce7 commit 38e4224

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@ Extracts SourceMaps for source files that as added as `sourceMappingURL` comment
44

55
## Usage
66

7-
[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)
7+
[Documentation: Using loaders](https://webpack.js.org/concepts/#loaders)
88

99

10-
### example webpack config
10+
### Example webpack config
1111

1212
``` javascript
1313
module.exports = {
1414
module: {
15-
preLoaders: [
15+
rules: [
1616
{
1717
test: /\.js$/,
18-
loader: "source-map-loader"
18+
loader: "source-map-loader",
19+
enforce: "pre"
1920
}
2021
]
2122
}

0 commit comments

Comments
 (0)