Utilizing the File Watcher tool in Jetbrains IDE (Webstorm and Rider) to automatically minify .css files and generate corresponding .min.css files for the entire project has been my goal.
However, a challenge arises when it starts minifying files that already have .min.css as the extension. This results in files like slick.min.min.css
. I am unable to locate any option to specify the criteria for file matching. Is there a way to make it ignore .min.css files to avoid duplicates?
I referred to this guide: https://www.jetbrains.com/help/idea/compressing-css.html#ws_css_compress_create_file_watcher along with some insights from here How to Minify CSS with SCSS File Watcher in PHPStorm IDE