gulp-prepack-js

0.0.2 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i gulp-prepack-js

Weekly Downloads

2

Version

0.0.2

License

ISC

Last publish

Collaborators

  • bukas