Reo's avatar
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

0 likes
1 reply

Please or to participate in this conversation.