How to minify JS or CSS on the fly [closed]

How to minify JS or CSS on the fly [closed]