From 38e4224bcb0bae22205feec96957e9264469950e Mon Sep 17 00:00:00 2001 From: Cole Voss Date: Tue, 10 Jan 2017 22:22:42 -0600 Subject: [PATCH 1/2] Update readme to fit webpack v2 --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5ec9901..84bd412 100644 --- a/README.md +++ b/README.md @@ -4,18 +4,19 @@ Extracts SourceMaps for source files that as added as `sourceMappingURL` comment ## Usage -[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html) +[Documentation: Using loaders](https://webpack.js.org/concepts/#loaders) -### example webpack config +### Example webpack config ``` javascript module.exports = { module: { - preLoaders: [ + rules: [ { test: /\.js$/, - loader: "source-map-loader" + loader: "source-map-loader", + enforce: "pre" } ] } From 74ce274021290eda3f0c793fc640169fd4033cb5 Mon Sep 17 00:00:00 2001 From: Cole Voss Date: Tue, 10 Jan 2017 22:33:25 -0600 Subject: [PATCH 2/2] use "use" instead of "loader" keyjk;w --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 84bd412..f99077a 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ module.exports = { rules: [ { test: /\.js$/, - loader: "source-map-loader", + use: ["source-map-loader"], enforce: "pre" } ]