Skip to content

Commit

Permalink
Update uglify-overview.md
Browse files Browse the repository at this point in the history
Remove upgrade instructions that never applied since v3.x is a version from the future.
  • Loading branch information
XhmikosR authored Mar 1, 2017
1 parent a34af0d commit 3a718cf
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions docs/uglify-overview.md
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
Task targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide.

# Migrating from 2.x to 3.x

Version `3.x` introduced changes to configuring source maps. Accordingly, if you don't use the source map options you should be able to upgrade seamlessly. If you do use source maps, see below.

## Removed options

* `sourceMappingURL` - This is calculated automatically now
* `sourceMapPrefix` - No longer necessary for the above reason

## Changed options

* `sourceMap` - Only accepts a `Boolean` value. Generates a map with a default name for you
* `sourceMapRoot` - The location of your sources is now calculated for you when `sourceMap` is set to `true` but you can set manual source root if needed

## New options

* `sourceMapName` - Accepts a string or function to change the location or name of your map
* `sourceMapIncludeSources` - Embed the content of your source files directly into the map
* `expression` - Accepts a `Boolean` value. Parse a single expression (JSON or single functions)
* `quoteStyle` - Accepts integers `0` (default), `1`, `2`, `3`. Enforce or preserve quotation mark style.

0 comments on commit 3a718cf

Please sign in to comment.