starkovsky / laravel-vue-cli

Laravel 7 + Vue CLI 4 SPA (Vuex, Router, Test) Admin + Public builds
167 stars 58 forks source link

how to generate the app.blade.php file? #144

Closed javleds closed 4 years ago

javleds commented 4 years ago

Hi!

I was following the step by step guide, but when I get into this step:

Route::any('/{any}', 'FrontendController@app')->where('any', '^(?!api).*$');

I have noticed that the file app.blade.php does not exist. When vue-cli is in dev mode, this file is generated in memory, you will be able to enter to http://localhost:8080 by running npm run serve but if you are running php artisan serve and you try to enter to http://localhost:8000 it will throw the following error :

InvalidArgumentException
View [app] not found.

How can I generate this file dynamically while npm run serve is running?

Thanks in advance.

starkovsky commented 4 years ago

Hello, thx for you feedback. If you need generated blade files, run vue-cli-service build --watch --mode development You don't need webpack dev server

boussadjra commented 3 years ago

@starkovsky I tried to run that command but it doesn't generate the blade file