Skip to content

Vite: SCSS Styles doesn't preload in dev #11990

@proskurindima

Description

@proskurindima

Describe the bug and expected behavior

When I use SCSS, styles doesn't preload.
You can see it in codeSanbox

The same problem appears in my local environment.

Steps to reproduce

Steps to reproduce the behavior:

  1. Add node-sass, sass and sass-loader packages in your package.json
  2. Add some styles in <style> tag with attr lang="scss". For example:
<style lang="scss">
.test {
  font-size: 24px;
  font-family: sans-serif;
}
</style>
  1. Reload page
  2. See, that styles doesn't preload

Additional context

I've reproduced this error in codeSanbox.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions