A gulp plugin for prepack.
First, install gulp-prepack
as a development dependency:
npm install --save-dev gulp-prepack
Then, add it to your gulpfile.js
:
var prepack = require('gulp-prepack');
gulp.task('default', function(){
gulp.src('*.js')
.pipe(prepack({
// prepack options , more https://prepack.io/getting-started.html
}))
.pipe(gulp.dest('build'));
});