Skip to content

Commit

Permalink
fix: specify vue version in the web component demo html
Browse files Browse the repository at this point in the history
  • Loading branch information
sodatea committed Feb 7, 2022
1 parent 45ef65e commit 0cbdf5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli-service/lib/commands/build/demo-wc.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title><%- htmlWebpackPlugin.options.libName %> demo</title>
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/vue@<%- htmlWebpackPlugin.options.vueMajor %>"></script>
<script src="./<%- htmlWebpackPlugin.options.libName %>.js"></script>

<% for (const comp of htmlWebpackPlugin.options.components) { %>
Expand Down
Expand Up @@ -89,6 +89,7 @@ module.exports = (api, { target, entry, name, 'inline-vue': inlineVue }) => {
inject: false,
filename: 'demo.html',
libName,
vueMajor,
components:
prefix === ''
? [libName]
Expand Down

0 comments on commit 0cbdf5f

Please sign in to comment.