I use laravel 5.3 and try to integrate vue.js In my blade file I call within the section:
<script src=""></script>
My package.json looks like this:
{
"private": true,
"scripts": {
"prod": "gulp --production",
"dev": "gulp watch"
},
"devDependencies": {
"gulp": "^3.9.1",
"laravel-elixir": "^6.0.0-9",
"bootstrap-sass": "^3.3.7"
},
"dependencies": {
"bootstrap": "^3.3.7",
"laravel-elixir-vueify": "^1.0.3",
"vue": "^2.0.1",
"vue-router": "^0.7.13",
"jquery": "^3.1.0"
}
}
My gulpfile looks like this:
elixir(function (mix) {
mix.sass('app.scss');
mix.browserify('main.js');
mix.version('js/main.js');
});
After running "gulp" within the directory public/build a js and a css folder will be created with the js and css files. In the css folder I have a app.css file and a app.css.map file. In the js folder there is a main.js.map file and a main-1540595.js file. The css in the blade file is loaded. But The main.js file is not loaded. I think a main.js file is missing in the folder because I can see only a main.js.map file. Any ideas what goes wrong and because there is only a main.js.map file?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kd42Gt
via IFTTT
Aucun commentaire:
Enregistrer un commentaire