From 5a66ecf802bdbad9c9260ad82a3764ce4092a507 Mon Sep 17 00:00:00 2001 From: Danilo Bargen Date: Thu, 13 Oct 2016 13:34:05 +0200 Subject: [PATCH] Add another comments config example Much simpler than the function :) --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index f81b6c9..54f7ac6 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,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' + } +}); +``` + # License MIT © [Bogdan Chadkin](mailto:trysound@yandex.ru)