matthiasmullie / minify

CSS & JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.
https://matthiasmullie.github.io/minify/
MIT License
1.97k stars 309 forks source link

Minify Css not work #265

Open lapdx opened 5 years ago

lapdx commented 5 years ago

i'm using this lib minify css from url $minifierCss->add(file_get_contents($url)); But css result didn't minify I think content css have some problem you can check my file "http://coupon-grabber.com/css/semantic.css", "http://coupon-grabber.com/css/sui_common.css", "http://coupon-grabber.com/css/flickity.css", "http://coupon-grabber.com/css/header_footer.css", "http://coupon-grabber.com/css/responsive.css" this is my file I want to compress

peixotorms commented 5 years ago

Does file_get_contents($url) return anything at all? Some servers do not allow file_get_contents($url), only local file paths.