Hi, i got an application by @eliyas5044 where Laravel 5.3 was merged with Angular 2. Cloning that repository and after performing upgrade to 5.4 as per Laravel docs (https://laravel.com/docs/5.4/upgrade), i was able to build a beta version of a basic "Hello World" application. Please check out this (https://github.com/aaj013/laravel5.4-angular2) and inform any suggestions or if errors found.
Feb 12, 2017
1
Level 10
Laravel 5.4 and Angular 2.4 merge builds
Hi. I want to use Angular for frond-end development. I build my angular application with angular-cli an set it into my resource folder of laravel. Now I want to build my angular app combined with laravel. I have to use ng build --prod in my angular directory. Now I get the js and css files in the dist-folder of my angular app. I have to copy then into my laravel public folder and (in best case) i build an elixier version to add this files in my welcome.blade.php. With laravel 5.4 webpack is used. By angular-cli also webpack is used. Did someone can help how I can combine this?
Greetings Reo
Please or to participate in this conversation.