Open javier-molina opened 1 year ago
@djtfmartin to review approach please.
Add some changes in package.json to simplify building process with different env
Example:
"build:test":
"path-exists .env.development.json
&& shx cp .env.development.json .env.json
&& echo \"Build with .env.development.json \";
npx webpack --mode=development",
When we run: npm run build:test
, the process with check if .env.development.json
exists, overwrite.env
with this file and build, if .env.development.json
exists.
Build with .env.json
if env.development.json
does not exist.
This script can run cross platforms
This is now merged
This is a pointer to https://github.com/gbif/gbif-web/issues/280