Comparing version 0.4.18 to 0.4.19
@@ -635,3 +635,3 @@ var _ = require('underscore'); | ||
outputCharset: config.charset, | ||
config: config.common || {}, | ||
config:_.clone(config), | ||
sourceBase: self.getCommonDir() | ||
@@ -638,0 +638,0 @@ }; |
@@ -9,3 +9,3 @@ var fs = require('fs'); | ||
var uglify = function (from_file, to_file, options, done) { | ||
function uglify(from_file, to_file, options, done) { | ||
@@ -35,3 +35,3 @@ fs.readFile(from_file, 'utf8', function (err, content) { | ||
}); | ||
}; | ||
} | ||
@@ -50,3 +50,2 @@ /** | ||
ast_squeeze: { | ||
ascii_only: true, | ||
make_seqs: true, //which will cause consecutive statements in a block | ||
@@ -58,3 +57,3 @@ // to be merged using the “sequence” (comma) operator | ||
beautify: false, | ||
quote_keys: true, | ||
quote_keys: false, | ||
ascii_only: true | ||
@@ -74,5 +73,6 @@ } | ||
var pluginConfig; | ||
if (page.config.plugins && page.config.plugins.uglifyjs) { | ||
var pluginConfig = page.config.plugins.uglifyjs; | ||
pluginConfig = page.config.plugins.uglifyjs; | ||
@@ -88,4 +88,7 @@ _.chain(options) | ||
}) | ||
} else { | ||
pluginConfig = _.clone(options); | ||
} | ||
fu.findInDir(dir, jsReg, function(err, list){ | ||
@@ -92,0 +95,0 @@ if (err) { |
@@ -5,3 +5,3 @@ { | ||
"description": "build front project", | ||
"version": "0.4.18", | ||
"version": "0.4.19", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -59,3 +59,3 @@ # Kissy Pie (ki) | ||
- [KissyPie 命令列表](https://github.com/maxbbn/front-build/wiki/Command) | ||
- [在VM模版中使用 KissyPie 详解](https://github.com/maxbbn/front-build/wiki/Command) | ||
- [在VM模版中使用 KissyPie 详解](https://github.com/maxbbn/front-build/wiki/Use-Kissy-Pie-with-VM) | ||
- [一个基于KissyPie的应用样例] (https://github.com/maxbbn/front-build/tree/kissy-pie-m/server/public/assets/) | ||
@@ -62,0 +62,0 @@ |
1570080
228
39286