We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@import 'tailwindcss/utilities.css'
pnpm dlx envinfo --system --npmPackages System: OS: macOS 14.6.1 CPU: (12) arm64 Apple M2 Max Memory: 2.34 GB / 96.00 GB Shell: 3.7.1 - /opt/homebrew/bin/fish npmPackages: @rsbuild/core: ^1.1.8 => 1.1.10 @rsbuild/plugin-sass: ^1.1.2 => 1.1.2 @rsdoctor/rspack-plugin: ^0.4.12 => 0.4.12 rsbuild-plugin-tailwindcss: ^0.0.3 => 0.0.3 tailwindcss: ^3.4.17 => 3.4.17
When using this plugin with:
@rsbuild/plugin-sass
@import
.scss
lightningcss-loader
@import 'tailwindcss/utilities.css'; .foo { color: red; }
The tailwindcss could not work properly.
Debugging with Rsdoctor, it shows that the semicolon is removed by sass-loader.
sass-loader
https://github.com/colinaaa-reproductions/rsbuild-plugin-tailwindcss-scss-import
pnpm install
pnpm build
Then, checkout the output CSS in dist, it would be something like:
dist
@tailwind utilities.foo{color:red}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Versions
Details
When using this plugin with:
@rsbuild/plugin-sass
@import
in.scss
lightningcss-loader
The tailwindcss could not work properly.
Debugging with Rsdoctor, it shows that the semicolon is removed by
sass-loader
.Reproduce
https://github.com/colinaaa-reproductions/rsbuild-plugin-tailwindcss-scss-import
pnpm install
pnpm build
Then, checkout the output CSS in
dist
, it would be something like:The text was updated successfully, but these errors were encountered: