Fixes #397 - support for source map's sourcesContent property.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Sun, 15 Mar 2015 08:42:15 +0000 (08:42 +0000)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Mon, 16 Mar 2015 20:55:18 +0000 (20:55 +0000)
commit9c74966ff7bc2a0fafcf94277a8e5ac321b4a0cc
tree1ef827453ffb61d57cb8b2e5f5efd2699d5c33e8
parent6dfb148d9c88c155a76c224eee74d42d33098adc
Fixes #397 - support for source map's sourcesContent property.

When handling input source map it checks whether sourcesContent is present
and if it is so then it's reused in the output source map.

Adds `sourceMapInlineSources` / `--source-map-inline-source` switches to
control whether an inlined source map is created or not.

In case an input source map with a `sourcesContent` field is provided
then all sources from that source map are carried over to the output source map.
12 files changed:
History.md
README.md
bin/cleancss
lib/clean.js
lib/imports/inliner.js
lib/selectors/source-map-stringifier.js
lib/utils/input-source-map-tracker.js
lib/utils/source-maps.js
lib/utils/source-reader.js
test/binary-test.js
test/selectors/tokenizer-source-maps-test.js
test/source-map-test.js