Exclude libs.min.js from rollup build (#5118)

This commit is contained in:
Faris Ansari 2018-03-05 22:27:40 +05:30 committed by GitHub
parent 55e5b473d0
commit d5eb0deebf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

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

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