arackaf / customize-cra

Override webpack configurations for create-react-app 2.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do I get access to the webpack env (not process env)?

sontek opened this issue · comments

For example, with standard webpack we do:

webpack --mode production --env.ENTRY=forms --env.BUILD_VERSION=v1234

and I'm trying to replace that like this:

react-app-rewired build --env.BUILD_VERSION=v1234

but I don't see where I can get access to that in config overrides.

https://webpack.js.org/api/cli/#environment-options