Closed austin-raey closed 1 week ago
waiting for this, is it an important feature
Closing this issue because ownership of Critters has moved to the Nuxt team, who will be maintaining the project going forward. This repo is archived and won't receive any future updates.
If the issue is still relevant, please re-post it to the actively-maintained fork at https://github.com/danielroe/beasties.
Hey guys :)
I am having trouble, I think I could be missing something very simple. I'm not sure if this is a bug, but using the
pruneSource
config item doesn't seem to do anything.I was tinkering around with a critters astro plugin, astro-critters to inline critical CSS output from
astro
.After a while I decided to cut out the plugin middleman and just work directly with the compiled files and a simple
.mjs
script so I could see what interactions critters took with theindex.html
and the CSS file.Here is the following script setup:
The inlining is working just fine. Approximately 50% of the CSS asset is inlined, however, the CSS asset remains unchanged at ~10kB.
At least from the documentation, it is not clear to me if the CSS asset is automatically overwritten with
pruneSource: true
, or if extra work is necessary on my end to achieve this.astro-plugin
aside - am I missing some sort of configuration when working withcritters
bare-metal like this to get the CSS asset to be modified? :) Is there a method exposed from thecritters
class I could use?Thanks for any insight or help!