Browse Source

minify and optimize webpack-based modules

Raanan Weber 7 năm trước cách đây
mục cha
commit
fc53378fb9
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      Tools/Gulp/gulpfile.js

+ 2 - 2
Tools/Gulp/gulpfile.js

@@ -403,8 +403,8 @@ var buildExternalLibrary = function (library, settings, watch) {
                 return webpack(require(library.webpack))
                     .pipe(rename(library.output.replace(".js", ".bundle.js")))
                     .pipe(addModuleExports(library.moduleDeclaration, false, false, true))
-                    //.pipe(uglify())
-                    //.pipe(optimisejs())
+                    .pipe(uglify())
+                    .pipe(optimisejs())
                     .pipe(gulp.dest(outputDirectory))
             });
         }