2

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 :

enter image description here

Jaspreet kaur
  • 630
  • 5
  • 19

0 Answers0