mjohnston / envify-loader

envify loader for webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to pass options to envify

nmn opened this issue · comments

There was a problem/bug/design decision in Envify that was causing lots of problems.

The problem was that Envify wouldn't make undefined env variables as undefined, which would then cause errors.

The authors of Envify chose to not change the default bahaviour, but they did add an extra option called purge.

It's explained here: https://github.com/hughsk/envify#purging-processenv

Is there a way I use that option while using envify-loader??