node-packer
node-packer copied to clipboard
How do I separate the configuration from being compiled?
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!
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