a6smile / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

CSS constants/vars in CSS minifier #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
With the hot (again) topic of CSS variables, some simple text substitution 
would be trivial to implement in the CSS Minifier (or as a pre/post 
processor). This is something that should've been built into CSS tools a 
long time ago, but Minify can also do this work.

Original issue reported on code.google.com by mrclay....@gmail.com on 14 Jul 2008 at 1:17

GoogleCodeExporter commented 9 years ago
This could be fairly easily adapted:
http://interfacelab.com/variables-in-css-via-php/

Original comment by mrclay....@gmail.com on 10 Aug 2008 at 3:07

GoogleCodeExporter commented 9 years ago
Another implementation (& more ideas):
http://www.shauninman.com/archive/2008/05/30/check_out_css_cacheer

Original comment by mrclay....@gmail.com on 12 Aug 2008 at 3:25

GoogleCodeExporter commented 9 years ago

Original comment by mrclay....@gmail.com on 11 Sep 2008 at 8:45

GoogleCodeExporter commented 9 years ago
Yet another: http://sprymedia.co.uk/article/Conditional-CSS

Original comment by stephen....@gmail.com on 14 Oct 2008 at 11:28

GoogleCodeExporter commented 9 years ago
or just add LESS: http://leafo.net/lessphp/

Original comment by elan.ruu...@gmail.com on 29 Mar 2012 at 4:26

GoogleCodeExporter commented 9 years ago
Yes, LESS would be perfect!

Original comment by juan.com...@gmail.com on 26 Mar 2015 at 10:50

GoogleCodeExporter commented 9 years ago
check the 3.0 branch

https://github.com/mrclay/minify/tree/3.0

altho it's not finished yet

Original comment by elan.ruu...@gmail.com on 13 Apr 2015 at 8:16