I'm trying to deploy a vue app in a suitelet but i...
# suitescript
a
I'm trying to deploy a vue app in a suitelet but it can't find the js files. How can I include js files in a suitelet form?
m
Here’s a suitelet that I use to load react applications. It dynamically looks up the URL to the app/css files and injects those paths into the XML that’s returned to the client. https://github.com/datatek-software/netsuite-react-order-entry/blob/master/Apps/react-order-entry/order-entry.suitelet.js
a
How would I handle it if I have multiple js files?
m
One of the things I had to do in react was to turn off code-splitting to make this work. If vue is doing the same thing and creating many JS files and loading them dynamically as needed, you may need to see if there’s a way to disable that. If you just have multiple files that you have control over, you can either call that function multiple times or rewrite to get all of the URLs for the files that you know about.