Closed goldibex closed 9 years ago
Fixed up your requested changes @sindresorhus .
An aside on why I had added the sourcemapDestPath
option: I didn't realize at the time that I could get the path to the original file through the file
property in the sourcemap JSON. I changed the code to parse the sourcemap and get the property, so sourcemapDestPath
is no longer necessary.
Closing in favor of https://github.com/sindresorhus/gulp-rev/pull/77
This pull request adds support for
gulp-sourcemaps
. It holds on to sourcemaps (i.e. files ending in.map
) until the flush phase, where it checks to see if there's an associated source file. If there is, it uses the source file's hash; if not, it generates a new hash for the file as usual.Tests and documentation are also updated.