small change in webpack-core

This commit is contained in:
Tobias Koppers 2013-03-28 08:42:53 +01:00
parent 4e2cc94969
commit 8d0162c7bb
2 changed files with 5 additions and 2 deletions

View File

@ -53,7 +53,7 @@ UglifyJsPlugin.prototype.apply = function(compiler) {
ast.print(stream);
map = map + "";
stream = stream + "";
compilation.assets[file] = new SourceMapSource(stream, file, map, inputSourceMap);
compilation.assets[file] = new SourceMapSource(stream, file, map, input, inputSourceMap);
} catch(err) {
err.file = file;
compilation.warnings.push(err);

View File

@ -10,7 +10,7 @@ app.configure(function() {
context: __dirname,
entry: "./lib/index",
debug: true,
devtool: "eval",
devtool: "sourcemap",
module: {
loaders: [
{ test: /\.json$/, loader: "json" },
@ -25,6 +25,9 @@ app.configure(function() {
vm: "vm-browserify"
}
},
optimize: {
minimize: true
},
output: {
publicPath: "http://localhost:8080/js/",
filename: "web.js"