-
Notifications
You must be signed in to change notification settings - Fork 83
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
Two issues i want to discuss #115
Comments
Self references will occur in the wild so this is not a valid solution. See #106. As for the 2nd issue, why not just replace |
Any real self reference case? if there are some the code may go wrong in those cases. 2nd issue, |
Well, say you a link to home.html on every page of your site. Its not unlikely that home.html will contain a link to itself. In that case, things will break. As for the 2nd case, I can't really speak for the project, but if you put together a PR that elegantly deals with such edge cases, @smysnk might consider it. |
indeed it is, but no one wants to rename the For the 2nd issue, I would have a try. Thank you! |
I revision my html files ;) |
I attest @circlingthesun, I would revision them as well. However adding a flag to optionally not resolve references of filenames may not be uncalled for. Another solution may be to add a blacklist for files you don't want to find references based on the filename for. While |
I think the 2nd issue is similar to #88 |
First, Same as this test case https://github.com/smysnk/gulp-rev-all/blob/master/test/fixtures/config1/index.html#L22, is there any case a file referenced by itself?
I can't find any case. But look this issue i came across:
file
apply.js
after revision:
file
apply.43uf8sfu9r.js
The ajax uri has been modified which i wasn't expect. we can fix it by adding following code in function
resolveReferences
:Second, if i have some code like:
regExps
generated by functionreferenceToRegexs
doesn't match"$!staticBasePath/js/eqb/register-success.js"
, because the prefix$!staticBasePath
doesn't matchnonFileNameChar
which is/[^a-zA-Z0-9\\.\\-\\_\\/]/
.my solution is custom
referenceToRegexs
:but i don't like it due to long config.
what do you think, could we have some change to improve
gulp-rev-all
?The text was updated successfully, but these errors were encountered: