vitejs / vite

Next generation frontend tooling. It's fast!
http://vitejs.dev
MIT License
67.06k stars 6.02k forks source link

Support internal Sass/SCSS in HTML #17672

Open movahhedi opened 1 month ago

movahhedi commented 1 month ago

Description

The support of internal Sass/SCSS in HTML.

<!DOCTYPE html>
<html id="root">

<head></head>

<body>
    <style lang="scss">
        body {
            .hello {
                color: red;
            }
        }
    </style>

    <h1 class="hello">Hello</h1>
</body>

</html>

The example is, of course, just a test.

Suggested solution

Supporting of internal Sass/SCSS in HTML.

Alternative

No response

Additional context

No response

Validations

bluwy commented 1 month ago

I believe this was discussed before and would be nice to support (https://github.com/vitejs/vite/pull/8400#issuecomment-1445309412)