creyD / prettier_action

GitHub action for running prettier on your projects pull requests
MIT License
269 stars 87 forks source link

Ignore minified files #93

Closed hatamiarash7 closed 2 years ago

hatamiarash7 commented 2 years ago

How can I ignore minified files? For example, I don't need to format *.min.js and *.min.css files.
Can I add multiple patterns? like this:

prettier_options: --write " **/*.js, **/*.!(min.js) " # Obviously not work

Or

prettier_options: --write **/*{!(.min.)css,!(.min.)js} # Not work too

We can do this by a simple .prettierignore file but is there any way to ignore these files in command? I have no idea about that

creyD commented 2 years ago

This is answered in this post