Skip to content

Commit 6045abc

Browse files
committed
allow to disable mangling
1 parent 58586f8 commit 6045abc

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎lib/optimize/UglifyJsPlugin.js‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ UglifyJsPlugin.prototype.apply = function(compiler) {
4545
var compressor = uglify.Compressor(options.compressor);
4646
ast = ast.transform(compressor);
4747
ast.figure_out_scope();
48-
ast.compute_char_frequency(options.mangle || {});
49-
ast.mangle_names(options.mangle || {});
48+
if(options.mangle !== false) {
49+
ast.compute_char_frequency(options.mangle || {});
50+
ast.mangle_names(options.mangle || {});
51+
}
5052
}
5153
var map = null;
5254
map = uglify.SourceMap({

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack",
3-
"version": "0.11.0-beta13",
3+
"version": "0.11.0-beta14",
44
"author": "Tobias Koppers @sokra",
55
"description": "Packs CommonJs/AMD/Labeled Modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jade, coffee, css, less, ... and your custom stuff.",
66
"dependencies": {

0 commit comments

Comments
 (0)