Skip to content

Commit 855da76

Browse files
author
Guillaume Chau
committed
fix(webpack dashboard): support any command for mode
1 parent ff57b8f commit 855da76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli-ui-addon-webpack/src/mixins/Dashboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default {
4343
},
4444

4545
created () {
46-
const mode = this.mode = this.TaskDetails.task.command.indexOf('vue-cli-service serve') !== -1 ? 'serve' : 'build'
46+
const mode = this.mode = this.TaskDetails.task.command.match(/vue-cli-service\s+(\S+)/)[1]
4747
this.$store.commit('mode', mode)
4848
if (mode === 'build') {
4949
this.syncMode('build-modern')

0 commit comments

Comments
 (0)