fix(core): update
This commit is contained in:
parent
7c5ed463fe
commit
31d886a48a
@ -19,7 +19,7 @@ export class TsBundle {
|
|||||||
logger.log('info', `bundling for TEST!`);
|
logger.log('info', `bundling for TEST!`);
|
||||||
const bundle = await plugins.rollup.rollup(this.optionsTest);
|
const bundle = await plugins.rollup.rollup(this.optionsTest);
|
||||||
bundle.generate(this.optionsTest.output);
|
bundle.generate(this.optionsTest.output);
|
||||||
bundle.write(this.optionsTest.output);
|
await bundle.write(this.optionsTest.output);
|
||||||
logger.log('ok', `Successfully bundled files!`);
|
logger.log('ok', `Successfully bundled files!`);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ export class TsBundle {
|
|||||||
logger.log('info', `bundling for PRODUCTION!`);
|
logger.log('info', `bundling for PRODUCTION!`);
|
||||||
const bundle = await plugins.rollup.rollup(this.optionsProduction);
|
const bundle = await plugins.rollup.rollup(this.optionsProduction);
|
||||||
bundle.generate(this.optionsProduction.output);
|
bundle.generate(this.optionsProduction.output);
|
||||||
bundle.write(this.optionsProduction.output);
|
await bundle.write(this.optionsProduction.output);
|
||||||
logger.log('ok', `Successfully bundled files!`);
|
logger.log('ok', `Successfully bundled files!`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,7 +21,11 @@ export class HtmlHandler {
|
|||||||
minifyJS: true,
|
minifyJS: true,
|
||||||
sortAttributes: true,
|
sortAttributes: true,
|
||||||
sortClassName: true,
|
sortClassName: true,
|
||||||
removeAttributeQuotes: true
|
removeAttributeQuotes: true,
|
||||||
|
collapseWhitespace: true,
|
||||||
|
collapseInlineTagWhitespace: true,
|
||||||
|
removeComments: true
|
||||||
|
|
||||||
});
|
});
|
||||||
plugins.smartfile.memory.toFsSync(minifiedHtml, this.targetFilePath);
|
plugins.smartfile.memory.toFsSync(minifiedHtml, this.targetFilePath);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user