I gave up on getting vue to work and used react in...
# suitescript
a
I gave up on getting vue to work and used react instead. I think the basic idea is to use gulp to bundle the js and css inline and create a suitelet that loads the content of and html file and dump it there
s
Do you happen to have an example of how to do this? Also, do you know if this would work with Angular?
s
we use Angular for this sort of thing
I don't however have an open source example unfortunately
s
@stalbert when you say you use angular for this, what do you mean?
s
I mean we often build custom line of business apps hosted in netsuite using Angular rather than write Suitelets for customers.
a
Do you do the same cludge where you compile it inline?
s
we typically leave it as several files (as emitted by the Angular tooling) that host in the file cabinet directly. Using a suitelet wrapper is optional - needed only if you want the end result to include the NS main menu and so forth. Sometimes you want the entire screen to dedicate to the LOB app.
a
How does it access the external js? Can you make a folder public including the structure?
s
IIRC (I'm not the main dev doing these any more) angular spits out just a few files (like 4 or so). Typically the main entrypoint file has links to the others, you just have to make those paths correct depending on your deployment model. We build these apps across a wide range of authentication options, from no-auth to SCA auth (webstore related) to full NS auth.
long story short is depending on the model you're using effects exactly how you refer to the app file paths in the file cabinet.
a
I'll look into it. 2mb html file doesn't seem stable.