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

How do I separate the configuration from being compiled?

Open kangks opened this issue 6 years ago • 1 comments

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 avatar Jan 06 '19 19:01 kangks

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

kangks avatar Jan 06 '19 20:01 kangks