Webpack vueコンポーネントをロードWebpack You are using the runtime-only build of Vue where the template compiler is no
1071 ワード
シーン
webpack You are using the runtime-only build of Vue where the template compiler is not available
解決する
. webpack vue ,
webpack You are using the runtime-only build of Vue where the template compiler is not available
. webpack
{
test : /\.vue$/,
use : [
{
loader : 'vue-loader'
}
]
}
. entry
import Vue from 'vue';
import Heading from './components/heading.vue';
new Vue({
el : '#app',
components : {
Heading
}
});
解決する
. webopack.config.js
resolve: {
alias: {
vue: 'vue/dist/vue.js'
}
}