mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-14 19:30:14 -06:00
fix(webpack dashboard): support any command for mode
This commit is contained in:
@@ -43,7 +43,7 @@ export default {
|
||||
},
|
||||
|
||||
created () {
|
||||
const mode = this.mode = this.TaskDetails.task.command.indexOf('vue-cli-service serve') !== -1 ? 'serve' : 'build'
|
||||
const mode = this.mode = this.TaskDetails.task.command.match(/vue-cli-service\s+(\S+)/)[1]
|
||||
this.$store.commit('mode', mode)
|
||||
if (mode === 'build') {
|
||||
this.syncMode('build-modern')
|
||||
|
||||
Reference in New Issue
Block a user