pmq20 / node-packer

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

How do I separate the configuration from being compiled? #138

Open kangks opened 5 years ago

kangks commented 5 years ago

How do I separate the JS configuration from being compiled as the executable and use different configuration in different environment for testing?

Currently the configuration JS is included in the executable and I have to compile differently for different testing environment.

Thanks!

kangks commented 5 years ago

Ok it looks like I can pass in the path or filename of the config as runtime argument, as shown in https://speakerdeck.com/pmq20/node-dot-js-compiler-compiling-your-node-dot-js-application-into-a-single-executable?slide=36