Skip to content

Commit

Permalink
Add README
Browse files Browse the repository at this point in the history
  • Loading branch information
boopathi committed Mar 3, 2017
1 parent a05da73 commit 1c334df
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions packages/gulp-babili/README.md
@@ -1 +1,41 @@
# gulp-babili

## Installation

```sh
npm install gulp-babili --save-dev
```

## Usage

```js
const gulp = require("gulp");
const babili = require("gulp-babili");

gulp.task("minify", () =>
gulp.src("./build/app.js")
.pipe(babili({
mangle: {
keepClassNames: true
}
}))
.pipe(gulp.dest("./dist"));
);
```

## API

```js
gulpBabili(babiliOptions, overrides);
```

### babiliOptions

These are passed on to the babili preset. Refer https://github.com/babel/babili/tree/master/packages/babel-preset-babili#options. Default `{}`

### Overrides

Default: `{}`

+ `babel`: Use a custom `babel-core`
+ `babili`: Use a custom `babel-preset-babili`

0 comments on commit 1c334df

Please sign in to comment.