ant - UglifyJS file watcher in IntelliJ minifies already minified files during build -


i have uglifyjs file watcher set in intellij idea, , works great while i'm editing -- modify source js, minified version gets created next automatically.

however, when run ant build, , copies minified versions build working dir, watcher "helpfully" creates doubly minified versions of them (*.min.min.js) in build working dir, not ok.

i've set scope of watcher 'src' module, apparently doesn't you'd think would, because doubles created when ant copies files 'build' module. happens when use idea manually copy single file src build too.

i don't see how set include *.js exclude *.min.js, right thing. (seems sensible uglify should have built in, far can see doesn't.)

other getting rid of watcher , scripting build minification, or copying original js versions , letting watcher (re)create minified ones, what's best way go here?

got working, helpful commenter on idea forum. key setting custom scope, tried before failed.

pattern ended this, similar needs:

file[src]:*.js&&!file:*min.js* 

making 'src' module current opening dlg , selecting dropdown in main watcher config window apparently doesn't filter module. clicking ... btn, choosing dlg opens does, plus added explicit filename pattern exclude minified files too.

works great now, far i've tested (both minimal ant test , manually copying file 'build' in idea).


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -