Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 1.4 KB

README.md

File metadata and controls

56 lines (42 loc) · 1.4 KB

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