gulp-dotenv
v0.2.2
Published
A .env file plugin for gulp
Downloads
4,758
Readme
gulp-dotenv
A .env file plugin for gulp: compiling .env to JSON
Installation
$ npm install gulp-dotenv --save
Usage
.env
is a \n
separated key-value configuration file like KEY=VALUE
.
var dotenv = require('gulp-dotenv');
var rename = require('gulp-rename');
gulp.task('dotenv', function () {
return gulp.src('.env')
.pipe(dotenv())
.pipe(rename('env.json'))
.pipe(gulp.dest('dist'));
});
License
MIT © Pine Mizune