swashata / wp-webpack-script

💥🔥📦👩‍💻 An easy to use, pre configured, hackable webpack setup & development server for WordPress themes and plugins.
https://wpack.io
MIT License
408 stars 57 forks source link

Add a way to pass custom ENV variables. #1134

Closed ajgagnon closed 3 years ago

ajgagnon commented 4 years ago

This lets the user pass custom ENV variables to webpack's Define plugin. The variable must start with WPACKIO_ to be included to prevent leaking sensitive env variables client-side. 😁

ajgagnon commented 3 years ago

Sorry for the delay on this. I ended up breaking my wrist and getting surgery, so typing is a pain. Hopefully I should be able to contribute in a few weks.

swashata commented 3 years ago

No worries at all. Take rest and get well soon 🙂

swashata commented 3 years ago

This isn't needed anymore, since v6 has the functionality.