Skip to content

Commit b729b68

Browse files
committed
Mangle private properties when minifying
Private properties are indicated with a single leading underscore.
1 parent 3568772 commit b729b68

File tree

2 files changed

+296
-295
lines changed

2 files changed

+296
-295
lines changed

Gruntfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ module.exports = function(grunt) {
55
pkg: grunt.file.readJSON('package.json'),
66
uglify: {
77
options: {
8-
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
8+
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
9+
mangleProperties: {regex: /^_/}
910
},
1011
build: {
1112
src: '<%= pkg.name %>.js',

0 commit comments

Comments
 (0)