Skip to content

Commit

Permalink
Merge pull request #14 from dbrgn/patch-1
Browse files Browse the repository at this point in the history
Add another comments config example
  • Loading branch information
TrySound authored Jan 20, 2018
2 parents bd929e5 + 01b0739 commit 6ff5f95
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ uglify({
});
```

Alternatively, you can also choose to keep all comments (e.g. if a licensing header has already been prepended by a previous rollup plugin):

```js
uglify({
output: {
comments: 'all'
}
});
```

See [UglifyJS documentation](https://github.com/mishoo/UglifyJS2#keeping-comments-in-the-output) for further reference.

# License
Expand Down

0 comments on commit 6ff5f95

Please # to comment.