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

Check if input file is HTML? #50

Open
KidScripty opened this issue Aug 10, 2016 · 2 comments
Open

Check if input file is HTML? #50

KidScripty opened this issue Aug 10, 2016 · 2 comments

Comments

@KidScripty
Copy link

Not as much of an issue as a feature request but can it check if the file is html and not attempt the operation if not.

@jtuskan
Copy link

jtuskan commented Sep 8, 2016

You would just apply your own filter gulp-if for example:

.pipe(gulpif(function (file) { 
    return !/.html$/.test(file.path); 
}, htmlreplace({ 
    ... your options
})))

@localpcguy
Copy link

This should be an option, not a default, if implemented. There are reasons to use this with non-HTML files, despite the name.

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

3 participants