What I want to do is add a custom script in package.json file that should run always before start and build scripts.
Things I want to do in my custom script:
- Copy the favicon.ico file from
/favicons/${process.env.REACT_APP_BRAND}.icointo/public, in order to overwrite the default one - Do a symlink from
/src/assets/${process.env.REACT_APP_BRAND}to/src/assets/brand, in order to import images inside code without doing things like dynamic imports (which works but I think it's not their purpose)
I'm a bit lost with the structure of this custom script, and programming languange (its shell, but I'm on MacOS, so, it's better do it in node?)
Thank you.