Exceptions for the minify file watcher

Answered

I have configured CSS minify using YUI Compressor and JS minify using UglifyJS, and it works fine, with one exception: CSS or JS file is available as minified only, and it doesn't need to be minified again, and it has a name like this: *.min.js or *.min.css. But, if the file doesn't have a version without .min in the name, PHPStorm creates new minified files that ends up like: *.min.min.js or *.min.min.css.

How to configure the watcher to skip files that are only available as minified ending with .min.js or .min.css in the name?

Milan

2 comments
Comment actions Permalink

Hi there,

Create and use Custom Scope in your File Watcher where you can exclude unwanted patterns.

https://stackoverflow.com/a/24938053/783119

2
Comment actions Permalink

Thanks, that worked!

0

Please sign in to leave a comment.