I\'m trying to convert an angular app from gulp to webpack. in gulp I use gulp-preprocess to replace some variables in the html page (e.g. database name) depending on the NO
I prefer using .env file for different environment.
env.dev
env.prod
and in code
use
require('dotenv').config(); const API = process.env.API ## which will store the value from .env file