Centricity Systems
10/16/2020, 9:24 PMSuiteBundles >
Bundle 0000 >
config.json
resources >
myjsfile.js
... a whole lot more...
In my config.json I have:
{
"baseUrl": "SuiteBundles/Bundle 0000" (also tried adding a slash at the end)
}
In my entry point JS I have the following
/**
* ...
* @NAmdConfig /SuiteBundles/Bundle 0000/config.json
* ...
*/
define(["resources/myjsfile"], function(MyFile) {...});
I get Module doesn't exist "/resources/myjsfile.js" (shows that it's trying to load from the root of the file cabinet meaning it's not seeing config.json or not reading it right.)
I tried changing NAmdConfig to a virtual path "/.bundle/0000/config.json" (no quotes) and that gave me an internal error when trying to upload the entry point file.
I tried the following in the config.json as well
{
// note tried this with and without a "baseUrl"
"paths": {
"resources": "resources" (also tried with forward slash at beginning)
}
}
Also tried
{
// note tried this with and without a "baseUrl"
"paths": {
"resources": "/.bundle/0000/resources"
}
}
Nothing works except below
define("/.bundle/0000/myjsfile"...
But I really don't want to go through all the resources (there's a lot) and turn them into this style of path. I prefer to have the config point to the right root and leave all my defines to use the relative paths. What am I missing or doing wrong?