mirror of
https://github.com/tauri-apps/vue-cli-plugin-tauri.git
synced 2026-02-04 02:31:17 +01:00
fix args undefined will use --target
This commit is contained in:
4
index.js
4
index.js
@@ -92,11 +92,11 @@ module.exports = (api, options) => {
|
||||
}
|
||||
if (args.t || args.target) {
|
||||
cliArgs.push('--target')
|
||||
cliArgs.push(args.t)
|
||||
cliArgs.push(args.t ? args.t : args.target)
|
||||
}
|
||||
if (args.b || args.bundle) {
|
||||
cliArgs.push('--bundle')
|
||||
cliArgs.push(args.b)
|
||||
cliArgs.push(args.b ? args.b : args.bundle)
|
||||
}
|
||||
cli.run(cliArgs)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user