gulp-prepack-js
v0.0.2
Published
facebook prepack gulp plugin
Downloads
3
Readme
gulp-prepack-js
gulp plugin to optimize JavaScript code with facebook Prepack
Install
npm i --save-dev gulp-prepack-js
Usage
const gulp = require('gulp');
const prepack = require('gulp-prepack-js');
gulp.task('js', function () {
return gulp.src('js/*.js')
.pipe(prepack({
compatibility: 'browser',
sourceMaps: true,
}))
.pipe(gulp.dest('dist'));
});
Options
See the prepack
options.