Skip to content

caviarjs/dotenv-plugin

Repository files navigation

Build Status Coverage

@caviar/dotenv-plugin

caviar plugin to support .env file.

This plugin is a sandbox plugin which only works when caviar sandbox is enabled.

Install

$ npm i @caviar/dotenv-plugin -D

Usage

.env

SITE_HOST=https://google.com

SITE_PORT=8888

config.js

const DotEnvPlugin = require('@caviar/dotenv-plugin')

module.exports = {
  caviar: {
    plugins: [
      new DotEnvPlugin()
    ],
    ...
  },
  ...
}

License

MIT

About

caviar plugin to support .env file

Resources

License

Stars

Watchers

Forks

Packages

No packages published