Add custom modules into config
-
Hi, how can I add additional extensions while the docker-compose runs?
I added modules into jsreport.config.json but they didn't install"npm": { "allowedModules": "*", "dependencies": { "moment": "^2.29.1", "cldrjs": "^5.0.4", "cldr": "^35.1.4", "cldr-data": "^35.1.4", "globalize": "^1.7.0" } }
-
You can either use npm jsreport extension that installs the modules on the fly in real time during rendering.
There is no need to update jsreport config or install anything upfront then.
https://jsreport.net/learn/npmOr you can create your docker image with preinstalled packages.
https://jsreport.net/learn/docker#customize-docker-image
-
Thanks, the second approach suited me, I've had a mistake into docker-compose file