From 31d886a48a0af80e9001606ef030cc5229800794 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sun, 16 Jun 2019 17:52:20 +0200 Subject: [PATCH] fix(core): update --- ts/tsbundle.class.tsbundle.ts | 4 ++-- ts/tsbundle.htmlhandler.ts | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ts/tsbundle.class.tsbundle.ts b/ts/tsbundle.class.tsbundle.ts index 88242c1..99ddac7 100644 --- a/ts/tsbundle.class.tsbundle.ts +++ b/ts/tsbundle.class.tsbundle.ts @@ -19,7 +19,7 @@ export class TsBundle { logger.log('info', `bundling for TEST!`); const bundle = await plugins.rollup.rollup(this.optionsTest); bundle.generate(this.optionsTest.output); - bundle.write(this.optionsTest.output); + await bundle.write(this.optionsTest.output); logger.log('ok', `Successfully bundled files!`); } @@ -31,7 +31,7 @@ export class TsBundle { logger.log('info', `bundling for PRODUCTION!`); const bundle = await plugins.rollup.rollup(this.optionsProduction); bundle.generate(this.optionsProduction.output); - bundle.write(this.optionsProduction.output); + await bundle.write(this.optionsProduction.output); logger.log('ok', `Successfully bundled files!`); } diff --git a/ts/tsbundle.htmlhandler.ts b/ts/tsbundle.htmlhandler.ts index f3326d9..3a3300a 100644 --- a/ts/tsbundle.htmlhandler.ts +++ b/ts/tsbundle.htmlhandler.ts @@ -21,7 +21,11 @@ export class HtmlHandler { minifyJS: true, sortAttributes: true, sortClassName: true, - removeAttributeQuotes: true + removeAttributeQuotes: true, + collapseWhitespace: true, + collapseInlineTagWhitespace: true, + removeComments: true + }); plugins.smartfile.memory.toFsSync(minifiedHtml, this.targetFilePath); }