@caviar/dotenv-plugin
v2.0.1
Published
caviar plugin to support .env file
Downloads
10
Maintainers
Readme
@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()
],
...
},
...
}