Adding Javascript libraries to Bitnami DF 2


#1

hi,

Say I want to include some JS libraries like momentjs, parsley etc, what would be the ideal location to put them keeping in mind future upgrades too. I am using V8js. I want to be able to use them the same way libraries like lodash.min.js are currently used in Server side script like this

var lodash = require("lodash.min.js");


#2

For V8js server side scripting you can store javascript files to be included in [DF Installation]/htdocs/storage/scripting. Then just require them the same way you mentioned in the OP.


#3

Alright, thanks :thumbsup: