Permalink
Browse files

small change in webpack-core

  • Loading branch information...
1 parent 4e2cc94 commit 8d0162c7bb305fb4e441cc6238b217ca68e6ad63 @sokra sokra committed Mar 28, 2013
Showing with 5 additions and 2 deletions.
  1. +1 −1 lib/optimize/UglifyJsPlugin.js
  2. +4 −1 test/browsertest/middlewareTest.js
@@ -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"

0 comments on commit 8d0162c

Please sign in to comment.