Exclude libs.min.js from rollup build (#5118)
This commit is contained in:
parent
55e5b473d0
commit
d5eb0deebf
2 changed files with 4 additions and 0 deletions
|
|
@ -40,6 +40,8 @@ function build_assets(app) {
|
|||
.map(input_file => path.resolve(get_app_path(app), input_file));
|
||||
const { inputOptions, outputOptions } = get_rollup_options(output_file, input_files);
|
||||
|
||||
if (output_file.endsWith('libs.min.js')) return Promise.resolve();
|
||||
|
||||
return build(inputOptions, outputOptions)
|
||||
.then(() => {
|
||||
log(`${chalk.green('✔')} Built ${output_file}`);
|
||||
|
|
|
|||
|
|
@ -48,6 +48,8 @@ function get_watch_options(app) {
|
|||
.map(input_file => path.resolve(get_app_path(app), input_file));
|
||||
const { inputOptions, outputOptions } = get_rollup_options(output_file, input_files);
|
||||
|
||||
if (output_file.endsWith('libs.min.js')) return;
|
||||
|
||||
return Object.assign({}, inputOptions, {
|
||||
output: outputOptions
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue