Skip to content
This repository was archived by the owner on Mar 26, 2018. It is now read-only.

rewrite the sourceMappingURL in maps #67

Closed
wants to merge 1 commit into from

Conversation

nadeesha
Copy link

Currently, when the filerev encounter sourcemaps, it will rename the sourcemaps. However, it will not rename the reference to the sourcemaps within the actual js file. This would result in browser 404s for these source maps.

This fix reads the file contents and updates the sourecemap names with the revd name.

@sgnl
Copy link

sgnl commented Nov 19, 2014

Would be great if this got merged! 👍

// rewrite the sourceMappingURL in files
var jsFileContents = fs.readFileSync(resultPath, {
encoding: 'utf8'
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use the grunt file API methods

@sindresorhus
Copy link
Member

Also needs tests.

@eddiemonge
Copy link
Member

@ncthis can you update with the code review comments please?

@nelsonpecora
Copy link
Contributor

---> #80

@ezraroi
Copy link

ezraroi commented Apr 15, 2015

When this fix will be released?

@sindresorhus
Copy link
Member

#80

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants