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

Support RegEx for ignored files #50

Open
ronnyroeller opened this issue Jun 15, 2017 · 1 comment
Open

Support RegEx for ignored files #50

ronnyroeller opened this issue Jun 15, 2017 · 1 comment

Comments

@ronnyroeller
Copy link

We rename our *.js files for cache busting, e.g. the file my-file.js becomes my-file-<HASH>.js. Today, it's not possible to exclude files from gulp-inline without knowing their precise filename.

Hence, it would be great to allow regular expressions in the list of ignored files, e.g.:

inline({
  base: 'dist/',
  ignore: [
    'my-file-.*.js'
  ]
})
@ankon
Copy link

ankon commented Jun 19, 2017

A bit of a discussion point: instead of adding regular expressions here (or globs?), one could instead also suggest to use https://github.com/robrich/gulp-if here.

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 a pull request may close this issue.

2 participants