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

Excluding certain files or folders #15

Open
JMPerez opened this issue Jul 26, 2015 · 6 comments
Open

Excluding certain files or folders #15

JMPerez opened this issue Jul 26, 2015 · 6 comments

Comments

@JMPerez
Copy link

JMPerez commented Jul 26, 2015

I would like to be able to exclude certain files or folders from the src in the Gruntfile config for the plugin, but this seems to not be supported.

I know some other plugins support a structure like files with a src attribute that supports paths with globbing patterns and I was wondering if something similar could be supported.

@raddevon
Copy link

I just submitted a pull request with a fix for this issue. If you want, you can use my fork until the pull request gets merged (or in the event it is never merged). Uninstall the current version with npm remove grunt-purifycss and install mine with npm install raddevon/grunt-purifycss --save-dev.

@yashvekaria
Copy link

@raddevon : I have seen your fork, but you haven't mentioned any syntax for excluding files or folders. Can you update your readme please.

@raddevon
Copy link

raddevon commented Jun 6, 2016

@yashvekaria Since my fork doesn't implement any custom file exclusion solution (it merely allows the standard Grunt method of file exclusion to work), I'll refer you to the Grunt documentation on globbing patterns.

Since this is a standard all Grunt plugins can (and most do) support, the documentation should probably stay with Grunt rather than being duplicated to individual plugin documentation. I hope this helps!

@yashvekaria
Copy link

@raddevon, yes it was helpful. Thanks

@gmaggio
Copy link

gmaggio commented Sep 5, 2017

@raddevon Why isn't your pull request merged yet I wonder? File exclusion can really come in handy.

@raddevon
Copy link

raddevon commented Sep 5, 2017

@gmaggio I'm not sure. You could install my fork with NPM if you want to be able to exclude files.

npm install raddevon/grunt-purifycss#grunt-glob-expansion --save-dev

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

4 participants