allw's avatar
Level 4

How to integrate any NPM template install to laravel?

Looking for an easy to understand guide on how to use things like templates that have been downloaded using NPM.

Specifically the template I have been trying to use is here.

First thing to do is obviously distribute the html present to the blade based system in laravel, that I understand perfectly fine (Just a copy and paste job into one file for now) but how do I get laravel mix to either recompile the included stylesheets/js etc or copy them; I have had a look at mix.copydirectory and mix.copy both of which do exactly what they are looking to do except the freshly copied files now cannot find bootstrap (and I presume others).

Basically I am asking how do I copy/recompile whilst also solving the dependency issue?

Thanks!

0 likes
0 replies

Please or to participate in this conversation.