I use cra, and pass variables through the .env file. During the building process webpack replace the references to the process.env... with the values form the .env file and chunk contains 'hardcoded' values as a result, that's why I have to rebuild application every time to deploy it to the different environments.
How can I configurate webpack in such a way to don't rebuild whole app just to change environment variables?