Skip to content

Commit 012c745

Browse files
committed
extra args passed to vue-cli
resolve ionic-team#4642
1 parent 5ca557b commit 012c745

File tree

1 file changed

+2
-2
lines changed
  • packages/@ionic/cli/src/lib/project/vue

1 file changed

+2
-2
lines changed

packages/@ionic/cli/src/lib/project/vue/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ export class VueBuildCLI extends BuildCLI<VueBuildOptions> {
4141
const { pkgManagerArgs } = await import('../../utils/npm');
4242

4343
if (this.resolvedProgram === this.program) {
44-
return ['build'];
44+
return ['build', ...(options['--'] || [])];
4545
} else {
46-
const [ , ...pkgArgs ] = await pkgManagerArgs(this.e.config.get('npmClient'), { command: 'run', script: this.script });
46+
const [ , ...pkgArgs ] = await pkgManagerArgs(this.e.config.get('npmClient'), { command: 'run', script: this.script, scriptArgs: options['--'] });
4747
return pkgArgs;
4848
}
4949
}

0 commit comments

Comments
 (0)