I want to access the config variables in (.js) files that are in public folder. If I try to require the config file as :
var config = require('../config');
It gives error :
Uncaught ReferenceError: require is not defined
Following is the directory structure in the image below :