purifycss / grunt-purifycss

Remove unused CSS with the grunt build tool
MIT License
163 stars 21 forks source link

Excluding certain files or folders #15

Open JMPerez opened 9 years ago

JMPerez commented 9 years ago

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 commented 9 years ago

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 commented 8 years ago

@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 commented 8 years ago

@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 commented 8 years ago

@raddevon, yes it was helpful. Thanks

gmaggio commented 7 years ago

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

raddevon commented 7 years ago

@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