Skip to content

Commit 2a56179

Browse files
authored
fix: only replace App.vue when there's no router plugin (#5771)
Fixes #5770
1 parent 3952125 commit 2a56179

File tree

1 file changed

+1
-0
lines changed
  • packages/@vue/cli-plugin-typescript/generator/template/src

1 file changed

+1
-0
lines changed

packages/@vue/cli-plugin-typescript/generator/template/src/App.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
extend: '@vue/cli-service/generator/template/src/App.vue'
3+
when: "rootOptions.plugins && !rootOptions.plugins['@vue/cli-plugin-router']"
34
replace:
45
- !!js/regexp /Welcome to Your Vue\.js App/g
56
- !!js/regexp /<script>[^]*?<\/script>/

0 commit comments

Comments
 (0)