You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to boot astro with pnpm astro dev, the "transform" process of the global.css hangs for 60 or so seconds due to the inclusion of the open-props.min.css and transformation with this plugin. Without removeDuplicatedProperties: true the boot process of astro is blazing fast.
The text was updated successfully, but these errors were encountered:
Welcome @T3sT3ro! 👋
Would you be willing to try out, and potentially add a test case or benchmark for #852 ?
It has a potential fix but has been stalled for a while.
I'm attaching a stackblitz approximating what my site setup looks like. The slow astro boot process is clearly visible and can be tested when you comment-out the @import url(...open-props.min.css) inside src/styles/theme-light.css. The relevant delay is seen after the message "watching for file changes..." displays in the console. Without this line commented, the time before you see a page is around a minute, while the commented one takes only few seconds. Unfortunately I don't have the time to contribute beside this sample project demonstrating the issue (the issue might be more complex, because there is also a postcss import plugin, irrc for inlining content):
to run it and test how slow the boot is: pnpm astro dev
to get insights into astro boot, the timing of the style transformations etc: pnpm astro dev --verbose
I have an astro project with a
global.css
style. Inside, I import an open-props css file like so:My
postcss.config.cjs
as this configuration:When I try to boot astro with
pnpm astro dev
, the "transform" process of the global.css hangs for 60 or so seconds due to the inclusion of theopen-props.min.css
and transformation with this plugin. WithoutremoveDuplicatedProperties: true
the boot process of astro is blazing fast.The text was updated successfully, but these errors were encountered: