hawkins / prettier-webpack-plugin

Process your Webpack dependencies with Prettier
https://travis-ci.org/hawkins/prettier-webpack-plugin
50 stars 14 forks source link

Exclude/Include Directories #19

Open justtonytone opened 7 years ago

justtonytone commented 7 years ago

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?

hawkins commented 7 years ago

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. đź‘Ť

alexgorbatchev commented 7 years ago

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.

hawkins commented 7 years ago

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.

darknblack commented 6 years ago

Is there any update for exclude feature?

hawkins commented 6 years ago

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 :)