Skip to content

Commit e44e370

Browse files
committed
Update plugin for the vue 3 api + test and dev environment
1 parent 26c0419 commit e44e370

File tree

5 files changed

+13078
-60
lines changed

5 files changed

+13078
-60
lines changed

dev/index.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
77
<title><%= htmlWebpackPlugin.options.title %></title>
88
<meta name="viewport" content="width=device-width, initial-scale=1" />
9-
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.13/dist/vue.js"></script>
9+
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
1010
<!-- Javascript bundle gets inyected right here -->
1111
</head>
1212
<body>
@@ -40,16 +40,15 @@
4040
</p>
4141
</div>
4242
<script>
43-
Vue.use(window['<%= webpackConfig.output.library %>'], {
44-
importCss: false,
45-
});
46-
47-
new Vue({
48-
el: '#app',
49-
data: {
50-
lines: 2,
43+
var app = Vue.createApp({
44+
data: function () {
45+
return { lines: 2 };
5146
},
5247
});
48+
app.use(window['<%= webpackConfig.output.library %>'], {
49+
importCss: false,
50+
});
51+
app.mount('#app');
5352
</script>
5453
</body>
5554
</html>

0 commit comments

Comments
 (0)