Skip to content

Commit e9ac77c

Browse files
committed
fix: specify vue version in the web component demo html
1 parent 22a8a78 commit e9ac77c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/@vue/cli-service/lib/commands/build/demo-wc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<meta charset="utf-8">
22
<title><%- htmlWebpackPlugin.options.libName %> demo</title>
3-
<script src="https://unpkg.com/vue"></script>
3+
<script src="https://unpkg.com/vue@<%- htmlWebpackPlugin.options.vueMajor %>"></script>
44
<script src="./<%- htmlWebpackPlugin.options.libName %>.js"></script>
55

66
<% for (const comp of htmlWebpackPlugin.options.components) { %>

packages/@vue/cli-service/lib/commands/build/resolveWcConfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ module.exports = (api, { target, entry, name, 'inline-vue': inlineVue }) => {
8181
inject: false,
8282
filename: 'demo.html',
8383
libName,
84+
vueMajor,
8485
components:
8586
prefix === ''
8687
? [libName]

0 commit comments

Comments
 (0)