first
This commit is contained in:
28
node_modules/@vue/cli-service/lib/commands/build/demo-lib.html
generated
vendored
Normal file
28
node_modules/@vue/cli-service/lib/commands/build/demo-lib.html
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title><%- htmlWebpackPlugin.options.libName %> demo</title>
|
||||
<script src="//unpkg.com/vue@<%- htmlWebpackPlugin.options.vueMajor %>"></script>
|
||||
<script src="./<%- htmlWebpackPlugin.options.assetsFileName %>.umd.js"></script>
|
||||
<% if (htmlWebpackPlugin.options.cssExtract) { %>
|
||||
<link rel="stylesheet" href="./<%- htmlWebpackPlugin.options.assetsFileName %>.css">
|
||||
<% } %>
|
||||
|
||||
<div id="app">
|
||||
<demo></demo>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
<% if (htmlWebpackPlugin.options.vueMajor === 3) { %>
|
||||
Vue.createApp({
|
||||
components: {
|
||||
demo: <%- htmlWebpackPlugin.options.libName %>
|
||||
}
|
||||
}).mount('#app')
|
||||
<% } else { %>
|
||||
new Vue({
|
||||
components: {
|
||||
demo: <%- htmlWebpackPlugin.options.libName %>
|
||||
}
|
||||
}).$mount('#app')
|
||||
<% } %>
|
||||
</script>
|
Reference in New Issue
Block a user