Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/huanz/gulp-prepack-js
- Owner: huanz
- Created: 2017-05-04T02:23:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-04T06:28:08.000Z (over 7 years ago)
- Last Synced: 2024-11-07T13:18:05.192Z (11 days ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).