Use .env files with your Svelte project
November 11th 2020I recently learned a nice way to manage your .env
files in your Svelte projects. If you're using Rollup
as your bundling tool, which is likely to be the case, you can use the node module dotenv to automatically inject the content of a .env
file into your web page.