Skip to content

CSS updates require a dev server restart when using workspace Vue package #10110

@spacedawwwg

Description

@spacedawwwg

Astro Info

Astro                    v4.3.7
Node                     v18.18.0
System                   Linux (x64)
Package Manager          pnpm
Output                   static
Adapter                  none
Integrations             @astrojs/vue

If this issue only occurs in one browser, which browser is a problem?

N/A

Describe the Bug

When updating CSS inside Vue components outside the Astro project root, referenced by the src attribute, the styles do not update until the dev server is restarted. Reloading the page does not fix the issue, only fully restarting the dev server does.

<style src="./Component.css"></style>

What's the expected result?

For the CSS to update

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-zev1hp

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageIssue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions