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

Is there a way to work with the preload feature from dotenv?

Open laukaichung opened this issue 6 years ago • 1 comments

There's a feature in dotenv that allows me to use the --require (-r) command line option to preload dotenv configurations in order to make sure the configurations are loaded before launching app.js, for example:

node -r dotenv/loadenv.js app.js

Is there a way to set the node arguments when running nodec?

laukaichung avatar Aug 19 '17 08:08 laukaichung

I think you can probably add some hack to node_main.cc around here to achieve this. In the future let's make this an extra argument to nodec.

image

pmq20 avatar Aug 21 '17 07:08 pmq20