Change directory of vue multi-page entries

This commit is contained in:
kPherox
2019-04-09 22:52:07 +09:00
parent 6269d07d01
commit d03764140e
8 changed files with 23 additions and 23 deletions

10
src/entries/_mount.ts Normal file
View File

@@ -0,0 +1,10 @@
import Vue, { VueConstructor } from 'vue'
import '@/components/_globals'
Vue.config.productionTip = false
export default function(render: VueConstructor) {
new Vue({
render: h => h(render),
}).$mount('#app')
}

4
src/entries/about.ts Normal file
View File

@@ -0,0 +1,4 @@
import vueMount from './_mount'
import About from '@/views/About.vue'
vueMount(About)

4
src/entries/main.ts Normal file
View File

@@ -0,0 +1,4 @@
import vueMount from './_mount'
import App from '@/views/App.vue'
vueMount(App)