import Vue from 'vue'
import App from './App'
import router from './router'
Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
el: '#app',router,template: '<App/>'
<template>
div id="app">
img src="./assets/logo.png"hello></<!-- 这里还可以写点其他组件,或者路由也可以 <router-view></router-view> -->
</div>
script>
import Hello from './components/Hello
export default {
name: appstyle>
import App from './app.vue'
creatElment(App)
})
render: funciton(creatElment) {
return creatElment(App)
}
import App from './app.vue'
),components: {
App
}
})
{
"presets": ["es2015","stage-2"]
}
import App from './app.vue'
module.exports = {
resolve: {
alias: {
'vue$': 'vue/dist/vue.common.js'
}
}
}
import App from './app.vue'
}
}
}