Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I customize finding references? #188

Open
shark-horse opened this issue May 31, 2018 · 0 comments
Open

How do I customize finding references? #188

shark-horse opened this issue May 31, 2018 · 0 comments

Comments

@shark-horse
Copy link

I don't see any way to inform gulp-rev-all about what constitutes a match to a file that will have a name change. Specifically, using the require-css plugin, say I have a requirejs shim with spectrum: ["css!../lib/spectrum/spectrum"]. That should be changed to e.g. spectrum: ["css!../lib/spectrum/spectrum.abcd1234"] using the hash of the CSS file at that location.

I looked at providing a custom replacer function, but from debugging, it looks like that runs once for every match, and the css! stuff isn't matched, so it would not run at all in file where that is the only match.

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

No branches or pull requests

1 participant