Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL/Raw SCSS imports work in dev, but not build #4791

Closed
1 task
Enteleform opened this issue Sep 18, 2022 · 1 comment
Closed
1 task

URL/Raw SCSS imports work in dev, but not build #4791

Enteleform opened this issue Sep 18, 2022 · 1 comment

Comments

@Enteleform
Copy link
Contributor

Enteleform commented Sep 18, 2022

What version of astro are you using?

1.2.6

Are you using an SSR adapter? If so, which one?

no

What package manager are you using?

yarn

What operating system are you using?

Windows

Describe the Bug

The linked repro has this implementation:

  • dark theme @ astro dev
  • light theme @ astro build
  • 2 pages, one which loads the theme via CSS and the other via SCSS

 

✔️ astro dev @ [CSS, SCSS]

Dev--CSS-SCSS

 

astro build @ [CSS, SCSS]

Styles are broken for all pages, not just the ones that loaded SCSS.

Build--CSS-SCSS
Update:
I was just exploring this a bit more and now can't reproduce the CSS page being broken when other pages have SCSS...
Also ran into that several times yesterday, so CSS being affected in the presence of SCSS seems intermittent.
The SCSS issue is consistent.

 

✔️ astro build @ [CSS]

(SCSS page renamed to SCSS.astro.disabled)

Build--CSS

 

Link to Minimal Reproducible Example

https://github.com/enteleform-codesandbox/0017--Astro--ConditionalSCSS

Participation

  • I am willing to submit a pull request for this issue.
@bluwy
Copy link
Member

bluwy commented Sep 18, 2022

Duplicate of #4395 and vitejs/vite#2522

@bluwy bluwy closed this as completed Sep 18, 2022
@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants