Script Python para compactar todos os seus arquivos css

import cssmin, time, glob

outfilename
= 'all_' + str((int(time.time()))) + ".css"

with open(outfilename, 'wb') as outfile:
for fname in glob.glob('*.css'):
with open(fname, 'r') as rawfile:
minified_file
= cssmin.cssmin(rawfile.read())
outfile
.write(minified_file)
outfile
.write('/* ================================end of ' + fname + '===========================================*/n')

Tem uma dependência, então pip install cssmin