sharkqert.blogg.se

Minify css with php
Minify css with php








minify css with php

In minify v2.1.3 you can simply change the following: There is no nice way to change this source: it has really bad structure.

minify css with php

Minify css with php code#

If you insist on doing it this way I can propose a few dirty hacks to make it work, but it requires changing minify's source code so I don't really know if that is a good idea. Could you please describe why exactly you want to do this? For example it is used to determine what HTTP headers send to client(application/x-javascript,text/css,?), what minifier class to use, is this file safe to parse etc.īut I'm almost certain that this situation can be avoided. No, you can't easily do it as minify heavily depends on file extensions (css,js,?). Your example repo contains a strange file name which wouldn't let me pull/push appropriately, so here's the changed report.php: Something like echo Minify_CSS::minify($css) Include Minify lib in your common.php file and use its classes (e.g. Less optimal : make minify download the CSS like this: Minify reads files directly from the server, skipping the HTTP request. Your CSS+PHP script outputs CSS only after it's requested from a server and parsed by PHP.










Minify css with php