Set extension to min.css if compress option set

I want my css file to be compiled with a .min.css extension if I set the compress option to true.