While searching for a js/css
compressing tool for my maven project, I came across this discussion on the topic - Maven Javascript Compressor
The tool functions well, but I am encountering one particular issue that I'm still trying to resolve.
If you do not specify a suffix with yui, it defaults to setting *-min
and generates a new file alongside the original. For instance, if I had a file named scripts.js
, after running the maven build with the plugin, I end up with both scripts.js
and scripts-min.js
files. What I actually need is only the *-min
file. Even when I set <nosuffix>
to true, it indicates that the compression was successful but does not override the file.
Is there a way to have only the compressed files retaining the original name?