Skip to content

Commit 0cbdf5f

Browse files
committed
fix: specify vue version in the web component demo html
1 parent 45ef65e commit 0cbdf5f

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,7 +1,7 @@
11
<!DOCTYPE html>
22
<meta charset="utf-8">
33
<title><%- htmlWebpackPlugin.options.libName %> demo</title>
4-
<script src="https://unpkg.com/vue"></script>
4+
<script src="https://unpkg.com/vue@<%- htmlWebpackPlugin.options.vueMajor %>"></script>
55
<script src="./<%- htmlWebpackPlugin.options.libName %>.js"></script>
66

77
<% 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
@@ -89,6 +89,7 @@ module.exports = (api, { target, entry, name, 'inline-vue': inlineVue }) => {
8989
inject: false,
9090
filename: 'demo.html',
9191
libName,
92+
vueMajor,
9293
components:
9394
prefix === ''
9495
? [libName]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy