snow300-plugin-dotenv

1.0.0 • Public • Published

@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 @snowpack/plugin-dotenv
// snowpack.config.json
{
  "plugins": ["@snowpack/plugin-dotenv"]
}
# .env
SNOWPACK_PUBLIC_ENABLE_FEATURE=true

NOTE: Snowpack requires the SNOWPACK_PUBLIC_ prefix to recognize environment variables. This is to prevent accidental exposure of keys and secrets.

What is Supported?

Plugin Options

None

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i snow300-plugin-dotenv

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    6.45 kB

    Total Files

    14

    Last publish

    Collaborators

    • yosefwijaya