Closed hatamiarash7 closed 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:
*.min.js
*.min.css
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
.prettierignore
This is answered in this post
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:
Or
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