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

Compile an individual scss file into a css file #8687

Closed
4 tasks done
GrayYoung opened this issue Jun 21, 2022 · 1 comment · Fixed by #10429
Closed
4 tasks done

Compile an individual scss file into a css file #8687

GrayYoung opened this issue Jun 21, 2022 · 1 comment · Fixed by #10429
Labels
enhancement New feature or request feat: css

Comments

@GrayYoung
Copy link

GrayYoung commented Jun 21, 2022

Clear and concise description of the problem

I just want to compile an individual scss file into a css file, why it is too hard?

Suggested solution

Compile an individual scss file into a css file.

Alternative

No response

Additional context

No response

Validations

@bluwy
Copy link
Member

bluwy commented Jun 23, 2022

It is hard because that's not what Vite is meant to do. It's a bundler that bundles all your CSS and SCSS at once. While you could intercept into the vite:css plugin and call transform yourself, I also think it's nice if Vite can provide some agnostic way to compile CSS individually, especially for Svelte to preprocess the styles before passing to the Svelte compiler.

@bluwy bluwy added enhancement New feature or request feat: css and removed enhancement: pending triage labels Jun 23, 2022
@sapphi-red sapphi-red linked a pull request Oct 17, 2022 that will close this issue
9 tasks
@github-actions github-actions bot locked and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request feat: css
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants