Exclude theme/plugin CSS file from Minify via filter?
-
I tried searching the code and docs but couldn’t find anything. Is there any way to hook into the plugin to exclude specific CSS files from the minify function (via the handle).
For my Total theme I load 2 files using a media attribute and these need to be excluded from the minify function but I don’t want my customers to have to manually do this. I believe the plugin should exclude these automatically as it doesn’t make sense to combine files with a media attribute – also breaks the popular WooCommerce plugin.
Anyway, is there any way to add code to my theme to tell the plugin to exclude specific files from the minify functionality? Thanks! (I know I could update the field programmatically, but this isn’t an optimal method). I would hope there is a filter available that returns an array of the excluded CSS files that we can append items to.
Thanks!!
- The topic ‘Exclude theme/plugin CSS file from Minify via filter?’ is closed to new replies.