From f1d633e8a3eb8d97c5f8c9fef14f3a7f386bfc7a Mon Sep 17 00:00:00 2001 From: sqwk Date: Mon, 20 Jun 2016 20:13:43 +0200 Subject: [PATCH] fix(build): separate async pipeline to generate non-gzipped bundles (fixes #367) --- .config/bundle-system.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.config/bundle-system.js b/.config/bundle-system.js index 9c8cc53cd9..4bf88d76a9 100755 --- a/.config/bundle-system.js +++ b/.config/bundle-system.js @@ -18,10 +18,18 @@ const pkg = require('../package.json'); const name = pkg.name; const targetFolder = path.resolve('./bundles'); +cleanBundlesFolder(); + async.waterfall([ - cleanBundlesFolder, getSystemJsBundleConfig, buildSystemJs({minify: false, sourceMaps: true, mangle: false}), +], err => { + if (err) { + throw err; + } +}); + +async.waterfall([ getSystemJsBundleConfig, buildSystemJs({minify: true, sourceMaps: true, mangle: false}), gzipSystemJsBundle