#After I modify CSS, my local build time jumps to 2000ms

1 messages · Page 1 of 1 (latest)

woven finch
#

I can run npm dev and get build times in <10ms. Then I modify my site's CSS and it jumps to ~2000ms.

untold chasmBOT
#

Hi @woven finch. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Based on the information provided in the extracts, it seems like you're experiencing a performance issue with Astro when modifying CSS. This issue has been reported by other users as well, where changes in CSS or configuration files like Tailwind or PostCSS require a server restart for the changes to be picked up, and this can lead to increased build times.

However, without more specific details about your setup (like Astro version, package manager, operating system, etc.), it's hard to provide a definitive solution.

Here are a few things you could try based on the information from the extracts:

  1. Check if you're using any CSS preprocessor like SCSS or PostCSS. Some users reported issues with these tools causing increased build times. If you're using one, try disabling it temporarily to see if it affects the build time.

  2. If you're using Tailwind CSS, be aware that changes in the Tailwind config are only picked up when the dev server is restarted. This could potentially increase your build times.

  3. Some users reported issues with specific Astro versions. If possible, try updating Astro to the latest version or switching to a different version to see if it resolves the issue.

If none of these suggestions help, I recommend opening an issue on the Astro GitHub page (https://github.com/withastro/astro/issues) providing all the necessary details about your setup and the problem you're experiencing. The Astro community and maintainers are usually very responsive and could provide more specific help.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: