node-packer icon indicating copy to clipboard operation
node-packer copied to clipboard

cant read config.json after make .exe

Open lynx12345 opened this issue 5 years ago • 0 comments

Hi!

I read a config.json file in a node file like this:

var config = require('./config.json'); console.log(config.agent + ' ' + config.initcommand);

Work ok when I run with node, but after compiling the config values remain permant in exe file, not reading the config file when I change values.

Is there a problem reading config files like this? or I have to do it in other way?

thnks in advance! LDM

lynx12345 avatar Jul 20 '18 20:07 lynx12345