graphpack icon indicating copy to clipboard operation
graphpack copied to clipboard

Support Dotenv

Open glennreyes opened this issue 7 years ago • 2 comments

Similar to CRA, I've found it useful to have that supported out of the box.

glennreyes avatar Nov 05 '18 11:11 glennreyes

would like to deal with that if ok (?).

just some questions upfront:

  • what's the main goal of this to be considered when implementing (especially regarding a cleaner code base)?
  • is it ok to use oss packages like https://github.com/motdotla/dotenv to solve this?

manpenaloza avatar Nov 05 '18 12:11 manpenaloza

I'd propose https://webpack.js.org/plugins/environment-plugin/#dotenvplugin. Ideally .env works well together with webpack.Environmentplugin (when set in the graphpack.config.js)

glennreyes avatar Nov 05 '18 19:11 glennreyes