What would be the best method/approach to a large website using Laravel(API) as back-end and Vue.js2 for the front-end. The main question here is how to make the javascript(VUE) split and require only if needed within the given route, since there is alot of javascript in this project.
1 . Is there a tool that can do this? Or any right way to tell though the API where to use certain script files?
2 . How would one split the transpiled app.js(in my case) file, so that it contains seperate functions per file
3 . Is this the best way to approach a project like this?
via Zenel Shabani