pmq20 / node-packer

Packing your Node.js application into a single executable.
MIT License
3.07k stars 202 forks source link

cant read config.json after make .exe #128

Open lynx12345 opened 5 years ago

lynx12345 commented 5 years ago

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