1
- -- -
2
- extend : '@vue/cli-service/generator/template/src/main.js'
3
- replace:
4
- - ! ! js / regexp / import Vue from 'vue' /
5
- - ! ! js / regexp / import App from './App.vue' /
6
- - ! ! js / regexp / Vue . config . productionTip = false /
7
- - ! ! js / regexp / h => h \(App \), /
8
- - ! ! js / regexp / } \)\.\$mount \('#app' \)/
9
- -- -
10
-
11
- < % # REPLACE % >
12
1
import Vue from 'nativescript-vue' ;
13
- < % # END_REPLACE % >
14
-
15
- < % # REPLACE % >
2
+ < % _ if ( rootOptions . router ) { _ % >
16
3
import Navigator from 'nativescript-vue-navigator'
4
+ < % _ } _ % >
17
5
18
6
import App from './App.vue' ;
7
+ < % _ if ( rootOptions . router ) { _ % >
19
8
import { options } from './router' ;
20
9
21
10
// adapt vue-router routes to nativescript-vue-navigator
@@ -27,20 +16,14 @@ const routes = options.routes.reduce((data, route) => {
27
16
} , { } ) ;
28
17
29
18
Vue . use ( Navigator , { routes } ) ;
30
- < % # END_REPLACE % >
19
+ < % _ } _ % >
31
20
32
- < % # REPLACE % >
33
21
// Set the following to `true` to hide the logs created by nativescript-vue
34
22
Vue.config.silent = false;
35
23
// Set the following to `false` to not colorize the logs created by nativescript-vue
36
24
// disabled in template due to typing issue for Typescript projects....NEEDS TO BE FIXED
37
25
// Vue.config.debug = true;
38
- < % # END_REPLACE % >
39
-
40
- < % # REPLACE % >
41
- h => h ( 'frame ', [ h ( App ) ] ) ,
42
- < % # END_REPLACE % >
43
26
44
- < % # REPLACE % >
27
+ new Vue({
28
+ render : h => h ( 'frame' , [ h ( App ) ] ) ,
45
29
} ).$start();
46
- < % # END_REPLACE % >
0 commit comments