Skip to content

Update asset digests when sourcemaps change#260

Open
davidtaylorhq wants to merge 1 commit intorails:mainfrom
davidtaylorhq:sourcemap-digest
Open

Update asset digests when sourcemaps change#260
davidtaylorhq wants to merge 1 commit intorails:mainfrom
davidtaylorhq:sourcemap-digest

Conversation

@davidtaylorhq
Copy link
Copy Markdown

When sourcemaps change, their digest will change, and the generated URL in the # sourceMappingURL comment will change. Therefore, it's important that the digest of the original asset also changes, so that caches can be invalidated correctly.

This change makes use of the existing #referenced_by API in the SourceMappingUrls compiler, and implements the tests in a similar way to 59406ab.

Resolves #259

When sourcemaps change, their digest will change, and the generated URL in the `# sourceMappingURL` comment will change. Therefore, it's important that the digest of the original asset also changes, so that caches can be invalidated correctly.

This change makes use of the existing `#referenced_by` API in the SourceMappingUrls compiler, and implements the tests in a similar way to 59406ab.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Changes to sourcemap do not affect asset digest

1 participant