small change in webpack-core
This commit is contained in:
parent
4e2cc94969
commit
8d0162c7bb
|
@ -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);
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue