Compare commits

..

2 Commits

Author SHA1 Message Date
f90f391e87 1.0.26 2019-06-16 17:52:20 +02:00
31d886a48a fix(core): update 2019-06-16 17:52:20 +02:00
4 changed files with 9 additions and 5 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@gitzone/tsbundle",
"version": "1.0.25",
"version": "1.0.26",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@gitzone/tsbundle",
"version": "1.0.25",
"version": "1.0.26",
"private": false,
"description": "a bundler using rollup for painless bundling of web projects",
"main": "dist/index.js",

View File

@ -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!`);
}

View File

@ -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);
}