DEV Community

Discussion on: How to use .env file in JavaScript applications with webpack

Collapse
 
seansingoor profile image
HolenGuing • Edited

Thanks for the practical article.
Is it possible to have multiple .env files for different environments?

Collapse
 
sanfra1407 profile image
Giuseppe

I guess yes: you just need to use webpack-merge, create different webpack config files which read different .env files.