Skip to content

Commit

Permalink
extra args passed to vue-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
aperron committed May 3, 2021
1 parent fd17af4 commit 2d77bc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@ionic/cli/src/lib/project/vue/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export class VueBuildCLI extends BuildCLI<VueBuildOptions> {
const { pkgManagerArgs } = await import('../../utils/npm');

if (this.resolvedProgram === this.program) {
return ['build'];
return ['build', ...(options['--'] || [])];
} else {
const [ , ...pkgArgs ] = await pkgManagerArgs(this.e.config.get('npmClient'), { command: 'run', script: this.script });
const [ , ...pkgArgs ] = await pkgManagerArgs(this.e.config.get('npmClient'), { command: 'run', script: this.script, scriptArgs: options['--'] });
return pkgArgs;
}
}
Expand Down

0 comments on commit 2d77bc0

Please sign in to comment.