Different development and build configuration with web-ext
问题 I am working with a browser extension project and want to have a different URL used in background.js during development time and build time. I want to do this without having to remember to change the code between development and build. With a server project I'd simply use dotenv/environment variables but that's not available to extensions which effectively run client side. In background.js I have a fetch using this api_base_url (we develop the API too); ... const api_base_url = 'http://127.0