After spending all Friday searching and not finding a good tool, today I gave a new shot and finally found a tool that minify both CSS and JS.
The name isn't much straightforward, that's why was hard to find: Microsoft Ajax Minifier
While asks for install, I just copied the folder contents to the project and worked like a charm.
For those who want to use it as Post-Event build:
Considering you have a .js folder and you want to concatenate and minify all .js files that end with .debug.js
.
type "$(ProjectDir)\Scripts\*.debug.js" | "$(ProjectDir)tools\AjaxMin" -JS -comments:none –global:jQuery,$ -out "$(ProjectDir)\Scripts\myProject.min.js" -clobber
$(ProjectDir)
is the project folder;type
is acmd.exe
command for displaying the contents of one or more files. So I order to get the contents of all *.debug.js files and leave in theSTDIN
;- Invoke AjaxMin.exe (no need for the
.exe
that I copied to my\tools\
folder; - pass arguments as needed with
-argName:argValue
; - use
-out
and a pathname with a file that will be outputted; - add
-clobber
to overwrite if file exists
Now everytime I need to update my css and js files, I re/build the project and voilá, minified CSS and JS.