You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather, given a file, what does gulp-rev-all think the path is?
gulp.src('.work/**/*',{base: '.work'}).pipe(revAll.revision({// works as expected:dontRenameFile: ['index.html',/favicon\.png/],// fails to make changes to index.html or app/main.js:dontSearchFile: [/^(?!(index\.html|app\/main\.js)).*$/],dontUpdateReference: [/^(?!(index\.html|app\/main\.js)).*$/]}).pipe(gulp.dest(...))...
So a few more specific questions:
When I pass in a string instead of a regex, how is that interpreted? The README shows an example of just providing .html to match all HTML files, and also I tried using glob syntax with a ** which gave me an error about an invalid regex. Is it some sort of "smart" matcher? Does index.html match path/to/index.html.bak?
Does gulp-rev-all respect the base? I.e., does it see a file index.html or a file .work/index.?
To prevent creating an additional problem, is there any option to pass e.g. a function or a gulp-filter instead of using a blasted regex? Or is there any sort of DoSearchFile or DoRenameFile option so I don't have to use complicated inverted regexes?
The reason I don't want to automagical renames on all our javascript files is that we have path configs in our RequireJS config, e.g.:
Rather, given a file, what does
gulp-rev-all
think the path is?So a few more specific questions:
.html
to match all HTML files, and also I tried using glob syntax with a**
which gave me an error about an invalid regex. Is it some sort of "smart" matcher? Doesindex.html
matchpath/to/index.html.bak
?base
? I.e., does it see a fileindex.html
or a file.work/index.
?gulp-filter
instead of using a blasted regex? Or is there any sort ofDoSearchFile
orDoRenameFile
option so I don't have to use complicated inverted regexes?The reason I don't want to automagical renames on all our javascript files is that we have path configs in our RequireJS config, e.g.:
with a few hundred entries or so, and each .js file in our code references its dependencies:
(For now, let's focus on .js files. I know I will have to update references in .css and other file types later.)
The text was updated successfully, but these errors were encountered: