From 63520229035d0eaae085f942e54ffc647ecd52b7 Mon Sep 17 00:00:00 2001 From: Joel Denning Date: Sun, 24 Jan 2016 17:20:00 -0700 Subject: [PATCH] Improve documentation for conditional compilation Having read uglifyjs' documentation, I came to this repo looking for how to use the equivalent of the `--define` command line option. I almost was unable to find how to do so, but #12 saved me, indicating that the documentation was just not great on how to use this feature. So this change would hopefully just help people like me who searched the page for `--define` and didn't know what to do when they couldn't find it. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4f1ae3a9..b353d9ce 100644 --- a/README.md +++ b/README.md @@ -414,9 +414,9 @@ grunt.initConfig({ #### Conditional compilation -You can also enable UglifyJS conditional compilation. This is commonly used to remove debug code blocks for production builds. +You can also enable UglifyJS conditional compilation . This is commonly used to remove debug code blocks for production builds. -See [UglifyJS global definitions documentation](http://lisperator.net/uglifyjs/compress#global-defs) for more information. +See [UglifyJS global definitions documentation](http://lisperator.net/uglifyjs/compress#global-defs) for more information. This is equivalent to the command line [`--define` option](https://github.com/mishoo/UglifyJS#use-as-a-code-pre-processor). ```js // Project configuration.