Skip to content

Commit 8d0162c

Browse files
committed
small change in webpack-core
1 parent 4e2cc94 commit 8d0162c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/optimize/UglifyJsPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ UglifyJsPlugin.prototype.apply = function(compiler) {
5353
ast.print(stream);
5454
map = map + "";
5555
stream = stream + "";
56-
compilation.assets[file] = new SourceMapSource(stream, file, map, inputSourceMap);
56+
compilation.assets[file] = new SourceMapSource(stream, file, map, input, inputSourceMap);
5757
} catch(err) {
5858
err.file = file;
5959
compilation.warnings.push(err);

test/browsertest/middlewareTest.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ app.configure(function() {
1010
context: __dirname,
1111
entry: "./lib/index",
1212
debug: true,
13-
devtool: "eval",
13+
devtool: "sourcemap",
1414
module: {
1515
loaders: [
1616
{ test: /\.json$/, loader: "json" },
@@ -25,6 +25,9 @@ app.configure(function() {
2525
vm: "vm-browserify"
2626
}
2727
},
28+
optimize: {
29+
minimize: true
30+
},
2831
output: {
2932
publicPath: "http://localhost:8080/js/",
3033
filename: "web.js"

0 commit comments

Comments
 (0)