Does anyone have a good example of how to include ...
# suitescript
k
Does anyone have a good example of how to include an amdconfig.json in a bundle? I need to make sure all the paths are correct and suspect a bundle installation script is going to be the way to accomplish this, but have never done one before.
m
Can't you use relative paths?
👍 1
k
My bundle is using sweetalert2 for a dialog. When I use a relative path, the dialog doesn't pop up, but displays in the bottom of the page instead
if I keep it in /SuiteScripts/sweetalert2 it works fine
amdconfig.json
So I'm thinking I need to copy sweetalert2.js and the amdconfig.json from the bundle directory to the /SuiteScripts/ directory
Nevermind, I got it working with relative paths!
Just had to use the sweetalert2.all.js instead of sweetalert2.js