Fixes #419 - handling multiple input source maps.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Tue, 27 Jan 2015 08:16:38 +0000 (08:16 +0000)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Thu, 29 Jan 2015 22:40:42 +0000 (22:40 +0000)
commitb1636497b66589ab980c98d4e287f5d1f5314046
tree6524362d9164805c31d7394cbae270c1b7c11b77
parent03ae69d3f3ef37ae9e1f003843e9ba2ef2b4079d
Fixes #419 - handling multiple input source maps.

Adds support for multiple input source maps when data is passed in
as a hash, e.g.:

```
new CleanCSS({ sourceMap: true }).minify({
  'path/to/source/1': {
    styles: '...styles...',
    sourceMap: '...source-map...'
  },
  'path/to/source/2': {
    styles: '...styles...',
    sourceMap: '...source-map...'
  }
})
```

Effectively it is the same as concatenating source maps, but should
be less error-prone.

See 'multiple source maps' in `test/source-map-test.js` for examples.
History.md
README.md
lib/clean.js
lib/utils/input-source-map-tracker.js
lib/utils/source-reader.js
test/source-map-test.js