prettier-webpack-plugin icon indicating copy to clipboard operation
prettier-webpack-plugin copied to clipboard

Exclude/Include Directories

Open justtonytone opened this issue 8 years ago • 5 comments

Are there any options or future plans to include options to exclude files from certain directories (e.g. node_modules), or perhaps to only include files from certain directories?

justtonytone avatar Jul 24 '17 00:07 justtonytone

No plans for this yet, but that sounds like a decent idea to me!

I think it's best to offer an option to exclude processing files in certain directories, that way we don't break backwards compatibility. We can default to ["node_modules"] or whatever syntax works with our implementation. 👍

hawkins avatar Jul 25 '17 03:07 hawkins

Without node_modules excluded I think this plugin isn't very useful. I think majority of builds using webpack would be pulling files in from node_modules.

alexgorbatchev avatar Sep 24 '17 00:09 alexgorbatchev

I certainly still find use in it, but I totally agree. It needs to happen, but I'm in my last semester of university, working full time, and preparing to move across the country in a couple months. So, I'm pretty much shot for time to work on open source. :(

I'm pretty sure this would be an easy task, and I welcome any method of solving it if anyone is interested to try.

hawkins avatar Sep 24 '17 01:09 hawkins

Is there any update for exclude feature?

darknblack avatar Sep 17 '18 02:09 darknblack

Nothing’s happened. I don’t work in web space these days as much as I used to, so I haven’t had the bandwidth to do this myself. Shouldn’t be too complicated if you’d like to take a stab at it yourself and send in a PR :)

hawkins avatar Sep 17 '18 02:09 hawkins