CodeSleeve / asset-pipeline

This Laravel 4 package provides a very simple and easy to use asset pipeline. It was heavily inspired by the Rails asset pipeline. We make use of the wonderful Assetic package to help with pre-compliation!
http://www.codesleeve.com
MIT License
491 stars 53 forks source link

[Proposal] new css and javascript minifier #155

Open kdocki opened 10 years ago

kdocki commented 10 years ago

Known Issues

@tabennett is searching for a new minifier that might address these issues.

aheissenberger commented 10 years ago

the best JS minifyer is https://developers.google.com/closure/compiler/ but you need java to use ist

evantishuk commented 10 years ago

If you use the official Twitter Bootstrap sass port (https://packagist.org/packages/twbs/bootstrap-sass ) it doesn't break -- at least I haven't noticed any issues with the components I use regularly. Perhaps that could be an alternative route for people experiencing problems. Where I have had bugs is with CSS libraries that use Opera vendor prefixes, specifically within CSS3 animation blocks.

As for an alternative, I have used https://github.com/canton7/fuelphp-casset/blob/master/classes/casset/csscompressor.php in the past, which is based on Steve Clay's https://code.google.com/p/minify/.

I'm not sure which is the more sophisticated solution, but Clay's certainly has fewer moving parts compared to https://github.com/nitra/PhpMin/blob/master/CssMin/CssMin.php

Braunson commented 10 years ago

@kdocki I'm using the latest Bootstrap 3 (Less) with asset-pipeline and don't have any issues?