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);
|
ast.print(stream);
|
||||||
map = map + "";
|
map = map + "";
|
||||||
stream = stream + "";
|
stream = stream + "";
|
||||||
compilation.assets[file] = new SourceMapSource(stream, file, map, inputSourceMap);
|
compilation.assets[file] = new SourceMapSource(stream, file, map, input, inputSourceMap);
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
err.file = file;
|
err.file = file;
|
||||||
compilation.warnings.push(err);
|
compilation.warnings.push(err);
|
||||||
|
|
|
@ -10,7 +10,7 @@ app.configure(function() {
|
||||||
context: __dirname,
|
context: __dirname,
|
||||||
entry: "./lib/index",
|
entry: "./lib/index",
|
||||||
debug: true,
|
debug: true,
|
||||||
devtool: "eval",
|
devtool: "sourcemap",
|
||||||
module: {
|
module: {
|
||||||
loaders: [
|
loaders: [
|
||||||
{ test: /\.json$/, loader: "json" },
|
{ test: /\.json$/, loader: "json" },
|
||||||
|
@ -25,6 +25,9 @@ app.configure(function() {
|
||||||
vm: "vm-browserify"
|
vm: "vm-browserify"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
optimize: {
|
||||||
|
minimize: true
|
||||||
|
},
|
||||||
output: {
|
output: {
|
||||||
publicPath: "http://localhost:8080/js/",
|
publicPath: "http://localhost:8080/js/",
|
||||||
filename: "web.js"
|
filename: "web.js"
|
||||||
|
|
Loading…
Reference in New Issue