运行后:
npm install
npm run watch
文件夹resource / js中没有初始化vue示例。
我的package.json具有以下依赖性:
"devDependencies": {
"axios": "^0.19",
"bootstrap-sass": "^3.3.7",
"cross-env": "^5.1",
"jquery": "^3.2",
"laravel-mix": "^4.0.7",
"lodash": "^4.17.13",
"resolve-url-loader": "^3.1.0",
"sass": "^1.24.0",
"sass-loader": "^7.3.1",
"vue": "^2.5.17",
"vue-template-compiler": "^2.6.11"
}
我希望app.js文件中包含以下内容:
require('./bootstrap');
window.Vue = require('vue');
Vue.component('example-
component',require('./components/ExampleComponent.vue'));
const app = new Vue({
el: '#app'
});
我只有
require('./bootstrap');
有人可以帮我吗?