Browse Source

amberc.js: only minify the actively compiled sources and not the specified libraries

Manfred Kroehnert 11 năm trước cách đây
mục cha
commit
e52228e5d0
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      bin/amberc.js

+ 2 - 2
bin/amberc.js

@@ -580,8 +580,8 @@ AmberC.prototype.optimize = function() {
 
 	if (defaults.closure_parts) {
 		console.log('Compiling all js files using Google closure compiler.');
-		var allJsFiles = defaults.compiled.concat(defaults.libraries);
-		allJsFiles.forEach(function(file) {
+		defaults.compiled.forEach(function(file) {
+			console.log('Compiling ' + file + ' file using Google closure compiler.');
 			var minifiedName = path.basename(file, '.js') + '.min.js';
 			self.closure_compile(file, minifiedName, optimization_done.add());
 		});