Skip to content

Commit a539f24

Browse files
committed
SourceMapDevToolPlugin: update test config with example from change request
1 parent 612111a commit a539f24

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/configCases/plugins/source-map-dev-tool-plugin/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
it("should contain publicPath prefix in [url] and resolve relatively to fileContext", function() {
22
var fs = require("fs"),
33
path = require("path");
4-
var source = fs.readFileSync(path.join(__dirname, "dist/public/test.js"), "utf-8");
4+
var source = fs.readFileSync(path.join(__dirname, "public/test.js"), "utf-8");
55
source.should.containEql("//# sourceMappingURL=https://10.10.10.10/project/sourcemaps/test.js.map");
66
});
77

test/configCases/plugins/source-map-dev-tool-plugin/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
},
77
entry: {
88
"bundle0": ["./index.js"],
9-
"dist/public/test": ["./test.js"],
9+
"public/test": ["./test.js"],
1010
},
1111
output: {
1212
filename: "[name].js"
@@ -15,7 +15,7 @@ module.exports = {
1515
new webpack.SourceMapDevToolPlugin({
1616
filename: "sourcemaps/[file].map",
1717
publicPath: "https://10.10.10.10/project/",
18-
fileContext: "dist/public"
18+
fileContext: "public"
1919
})
2020
]
2121
};

0 commit comments

Comments
 (0)