Skip to content

Instantly share code, notes, and snippets.

@kubk
kubk / add-hmr.sh
Created May 19, 2019 — forked from thomaswmanion/add-hmr.sh
Add HMR to Angular CLI
View add-hmr.sh
createEnvFile() {
production=$1
hmr=$2
file=$3
echo "export const environment = {" > $file
echo " production: $production," >> $file
echo " hmr: $hmr" >> $file
echo "};" >> $file
}