gulp-encrypt plugin for gulp
First, install gulp-encrypt
as a development dependency:
npm install --save-dev gulp-encrypt
Then, add it to your gulpfile.js
:
var encrypt = require("gulp-encrypt");
gulp.src("./src/*.json")
.pipe(encrypt({
key: process.env.secretKey,
decrypt: false || true
}))
.pipe(gulp.dest("./dist"));
Type: String
Default: null
Type: Boolean
Default: false