Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/huanz/gulp-prepack-js

gulp prepack plugin
https://github.com/huanz/gulp-prepack-js

Last synced: about 6 hours ago
JSON representation

gulp prepack plugin

Awesome Lists containing this project

README

        

# gulp-prepack-js

> gulp plugin to optimize JavaScript code with facebook [Prepack](https://prepack.io/)

## Install

```bash
npm i --save-dev gulp-prepack-js
```

## Usage

```javascript
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](https://prepack.io/getting-started.html#options).