fix(core): update

This commit is contained in:
2020-03-14 22:41:25 +00:00
parent acc7936a6a
commit d92edd60d9
9 changed files with 129 additions and 61 deletions

View File

@ -10,6 +10,4 @@ early.stop();
// lets make this usable programmatically
export * from './tsbundle.class.tsbundle';
export * from './tsbundle.htmlhandler';
export {
runCli
};
export { runCli };

View File

@ -5,7 +5,10 @@ export class TsBundle {
/**
* the basic default options for rollup
*/
public getBaseOptions(fromArg: string = `ts_web/index.ts`, toArg: string = 'dist_bundle/bundle.js') {
public getBaseOptions(
fromArg: string = `ts_web/index.ts`,
toArg: string = 'dist_bundle/bundle.js'
) {
logger.log('info', `from: ${fromArg}`);
logger.log('info', `to: ${toArg}`);
@ -81,11 +84,13 @@ export class TsBundle {
public getOptionsProduction(fromArg: string, toArg: string): plugins.rollup.RollupOptions {
const productionOptions = this.getBaseOptions(fromArg, toArg);
productionOptions.plugins.push(plugins.rollupTerser({
compress: true,
mangle: true,
sourcemap: true
}));
productionOptions.plugins.push(
plugins.rollupTerser({
compress: true,
mangle: true,
sourcemap: true
})
);
return productionOptions;
}