mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-05 11:02:40 +08:00
Merge pull request #186 from pandamicro/v0.7
Remove comments in default uglify option
This commit is contained in:
+3
-2
@@ -17,7 +17,8 @@ var handleErrors = require('../util/handleErrors');
|
||||
|
||||
require('./build-cocos2d');
|
||||
|
||||
function getUglifyOptions (minify, global_defs) {
|
||||
function getUglifyOptions (minify, global_defs, preserveComments) {
|
||||
preserveComments = preserveComments || false;
|
||||
if (minify) {
|
||||
return {
|
||||
compress: {
|
||||
@@ -51,7 +52,7 @@ function getUglifyOptions (minify, global_defs) {
|
||||
// http://lisperator.net/uglifyjs/codegen
|
||||
return {
|
||||
mangle: false,
|
||||
preserveComments: 'all',
|
||||
preserveComments: preserveComments,
|
||||
output: {
|
||||
beautify: true,
|
||||
bracketize: true
|
||||
|
||||
Reference in New Issue
Block a user