Skip to content

Commit

Permalink
doc(output): add documentation for $1 output
Browse files Browse the repository at this point in the history
  • Loading branch information
srod committed Sep 16, 2018
1 parent a7b06cb commit 718c8be
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ compressor.minify({
});
```

## Using wildcards with $1 output

This option will not merge the files.

```js
compressor.minify({
compressor: 'babel-minify',
input: 'public/**/*.js',
output: '$1.min.js',
callback: function(err, min) {}
});
```

If you have 3 files `file1.js`, `file2.js` and `file3.js`; those files will be outputed as `file1.min.js`, `file2.min.js` and `file3.min.js`

## Using sync option

```js
Expand Down

0 comments on commit 718c8be

Please sign in to comment.