Skip to content

Commit 6352022

Browse files
committedJan 25, 2016
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.
1 parent a6dd1cb commit 6352022

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,9 @@ grunt.initConfig({
414414

415415
#### Conditional compilation
416416

417-
You can also enable UglifyJS conditional compilation. This is commonly used to remove debug code blocks for production builds.
417+
You can also enable UglifyJS conditional compilation . This is commonly used to remove debug code blocks for production builds.
418418

419-
See [UglifyJS global definitions documentation](http://lisperator.net/uglifyjs/compress#global-defs) for more information.
419+
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).
420420

421421
```js
422422
// Project configuration.

0 commit comments

Comments
 (0)
Please sign in to comment.