Closed unclhos closed 8 years ago
Hello!
For this, I have written a seperate plugin as an addon. Check it here: https://github.com/LQ2-apostrophe/minit-cdn
Do you mean having your pull CDN serve the minited CSS file?
You could
wp_upload_dir()
@unclhos I would probably use the minit-content-css
filter (not tested):
add_filter( 'minit-content-css', function( $css ) {
return str_replace(
'//example.com',
'//cdn.example.com',
$css
);
} );
How can I use CDN for assets in CSS? Is it possible to filter the url without going in a modifying the urls by hand?