I have some 3rd party charting libraries I want to incorporate on my classic UI, but omit from my modern. When I try to add the libraries to the global classpath property in app.json, classic builds fine, but modern does not support them, and that build fails. So what I hope is possible, but have been unsuccessful with is something like:
Code:
"builds": {
"classic": {
"toolkit": "classic",
"theme": "theme-aria", //"theme-aria",
"sass": {
// "save": "classic/sass/save.scss"
},
"requires": [
"ux",
"charts"
],
"classpath": [
"${workspace.dir}/thirdparty/extensible-1.6.0/src",
"${workspace.dir}/thirdparty/gantt-2.5.1/js/Sch",
"${workspace.dir}/thirdparty/gantt-2.5.1/js/Gnt",
"${workspace.dir}/ux"
]
},
"modern": {
"toolkit": "modern",
"theme": "theme-triton",//"theme-aria",
"sass": {
// "save": "modern/sass/save.scss"
}
}
},
When I use this config, cmd does not recognize the classpath, and thus the classic build fails. How can I use 3rd party libraries on one toolkit and not the other? Thanks.