@hisystems/snowpack-plugin-dotenv
v2.0.2
Published
Use [dotenv](https://github.com/motdotla/dotenv) to load environment variables from your project `.env` files. See Snowpack's [Environment Variables](https://www.snowpack.dev/#environment-variables) documentation to learn more.
Readme
@hisystems/snowpack-plugin-dotenv
Use dotenv to load environment variables from your project .env files. See Snowpack's Environment Variables documentation to learn more.
npm install --save-dev @hisystems/snowpack-plugin-dotenv// snowpack.config.json
{
"plugins": ["@hisystems/snowpack-plugin-dotenv"]
}# .env
SNOWPACK_PUBLIC_ENABLE_FEATURE=trueNOTE: Snowpack requires the SNOWPACK_PUBLIC_ prefix to recognize environment variables. This is to prevent accidental exposure of keys and secrets.
What is Supported?
- dotenv-expand
.env.NODE_ENV.local.env.NODE_ENV.env
Plugin Options
None
