should work just fine normally. can you share your URL so I can have a look @joncampbell?
We had to turn the plugin off because of the issues.
I am just testing it on my local.
It seems to ignore any of the theme css files I put in the exclude box.
Heres what I have in there right now:
admin-bar.min.css, dashicons.min.css, assets/css/desktop, mobile-landscape.css, tablet-portrait.css
But desktop.css, mobile-landscape.css, and tablet-portrait.css are all still being combined and optimized.
I have cleared the cache when saving and also manually on the specific page.
Tomorrow I may look and see if i can get any info out of the plugins filters that gives me more details about why the exclusion isn’t happening.
OK, keep me posted, I’ll be happy to assist somehow.
For some reason the css file that is being autoptimized isn’t in the tags that run through
if ($this->isremovable($tag,$this->cssremovables)) {
}
that happens within the read() method of autoptimizeStyles.php
I output each $tag within the isremovable() method and the tag for desktop.css doesn’t seem to show up, but that file does get optimized anyway?
What am I missing?
hmm … can you copy/paste the excerpt of the HTML where the css-file gets referenced?
I think I know what the problem is. The css is imported into style.css
Style.css in the theme actually imports 7 other css files.
that would indeed be the case, imported CSS is only skipped if it cannot be read from the filesystem.