gulp-prepack-js
facebook prepack gulp plugin
Last updated 3 years ago by bukas .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-prepack-js 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.0.2                                ...           latest (3 years ago)

1 Versions

  • 0.0.2                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |