flourishlib / flourish-classes

The class files for Flourish
http://flourishlib.com
182 stars 78 forks source link

fTemplating minifcation enhancements #138

Open pjbeardsley opened 12 years ago

pjbeardsley commented 12 years ago

Ticket #719 by @tatsh

Making minification methods public would be nice. I use another way to template but I would like to be able to utilise the minification methods available in Flourish, normally.

Because I use another method to template, the minification methods are not public, and I do not find the JSMin algorithm particularly great, I use CssMin and a special custom Closure Compiler daemon script that generates .js files as needed (with advanced optimisations). It would be too much to ask for minification in Flourish to do all that Closure does.

CssMin has a great feature (which is not perfect yet): auto-adding of vendor prefixes. So basically, I can write border-radius once and have -moz, -o-, and -webkit- all added. I think this would be great to have in Flourish's CSS minifier. It also converts @keyframe blocks (again not perfect yet).

History

02/22/12 15:53:59 changed by msahagian I'd personally like too just see some hooks in there. I don't think it's Flourish's responsibility to become Prefixer per se as it's >outside the scope of the library in my opinion, particularly on fTemplating. Perhaps if there were an fCSS or fJS class it would >be useful to concot those methods.

That being said, if we could register minification hooks we could plug in to other APIs and utilities that handle this. Not to mention >possibly LESS compilers and other things like that.