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

feat(sass support): added support for .sass and .scss files #1782

Merged
merged 2 commits into from
Oct 21, 2022
Merged

feat(sass support): added support for .sass and .scss files #1782

merged 2 commits into from
Oct 21, 2022

Conversation

IgorSzymanski
Copy link
Contributor

What is it?

  • Feature / enhancement
  • Bug
  • Docs / tests

Description

Qwik already supports css files and css modules. Vite out of the box
supports sass and scss files along with their module counterparts. This
change enables the usage of SASS files and SASS modules.

Use cases and why

    1. .scss and .sass files even though correctly processed by Vite, are never properly exposed. Even though class names are properly created by css-modules through *.module.scss files, the actual stylesheets are unavailable to the components. This change let Qwik properly utilise styles transpiled by Vite.

Checklist:

  • My code follows the developer guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • Added new tests to cover the fix / functionality

@stackblitz
Copy link

stackblitz bot commented Oct 18, 2022

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@IgorSzymanski
Copy link
Contributor Author

I also need suggestion for the tests.

Qwik already supports css files and css modules. Vite out of the box supports sass and scss files
along with their module counterparts. This change enables the usage of SASS files and SASS modules.

fix #986
@manucorporat
Copy link
Contributor

Lint fails, might need to run yarn fmt

@manucorporat manucorporat merged commit 1765cd5 into QwikDev:main Oct 21, 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

Successfully merging this pull request may close these issues.

2 participants