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

dontRenameFile regex problem #173

Open
ringgoyao opened this issue Apr 24, 2017 · 1 comment
Open

dontRenameFile regex problem #173

ringgoyao opened this issue Apr 24, 2017 · 1 comment

Comments

@ringgoyao
Copy link

ringgoyao commented Apr 24, 2017

My project:
1

My Code


RevAll.revision({
            dontRenameFile: ['index.html', '**/logo/*.png']})

I do not rename the pngs under the logo folder ,but it does not work.
the '*.png' ,'**/logo/.png' also bad.
how I should edit ?

@shark-horse
Copy link

Please take another look at the README; RevAll.revision(...) does not change any files on disk. Instead, you need to pipe some files into the return value of that function, then pipe the resulting string into gulp.dest(...) to write to disk, e.g.:

  gulp
    .src('dist/**')
    .pipe(RevAll.revision())
    .pipe(gulp.dest('cdn'));

Or maybe you know of another way to use this library that I don't know?

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

2 participants