soyturk / minify

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

Allow index.css.php files to be processed and read? #251

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is more of an enhancement, or a support question if you already have it 
handled.

I'm currently using php to generate my css files, so I can define things like 
colors and custom fonts in php and include it in the document where its 
required.

This works great after I setup apache to server the files w/o the php 
extension, all they get is index.css.

But for minify, how would I go about processing the index.css.php file and then 
feeding it into minify to cache the pages?

I'm doing the same thing for my js files.

If there isn't a solution, I'll have to create a script to produce the 
index.css file from index.css.php and then run minify on it and not reference 
the index.css.php anymore.

Thanks, let me know,
Jason.

Original issue reported on code.google.com by jason.hu...@gmail.com on 1 Feb 2012 at 8:28

GoogleCodeExporter commented 9 years ago
Check the wiki for CustomSource. Apache has to execute you script and because 
it's dynamic you have to have a caching strategy. 

Original comment by mrclay....@gmail.com on 2 Feb 2012 at 11:28