-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove upgrade instructions that never applied since v3.x is a version from the future.
- Loading branch information
Showing
1 changed file
with
0 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |