File tree Expand file tree Collapse file tree 5 files changed +13079
-60
lines changed Expand file tree Collapse file tree 5 files changed +13079
-60
lines changed Original file line number Diff line number Diff line change 6
6
< meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
7
7
< title > < %= htmlWebpackPlugin.options.title %> </ title >
8
8
< 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 >
10
10
<!-- Javascript bundle gets inyected right here -->
11
11
</ head >
12
12
< body >
40
40
</ p >
41
41
</ div >
42
42
< 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 } ;
51
46
} ,
52
47
} ) ;
48
+ app . use ( window [ '<%= webpackConfig.output.library %>' ] , {
49
+ importCss : false ,
50
+ } ) ;
51
+ app . mount ( '#app' ) ;
53
52
</ script >
54
53
</ body >
55
54
</ html >
You can’t perform that action at this time.
0 commit comments