Skip to content

feat(css): add support for inline CSS imports#4849

Merged
chenjiahan merged 4 commits intomainfrom
inline_css_imports_0323
Mar 23, 2025
Merged

feat(css): add support for inline CSS imports#4849
chenjiahan merged 4 commits intomainfrom
inline_css_imports_0323

Conversation

@chenjiahan
Copy link
Member

@chenjiahan chenjiahan commented Mar 23, 2025

Summary

Supports importing transformed CSS files as strings in JavaScript by using the ?inline query parameter:

import inlineCss from './style.css?inline';

console.log(inlineCss); // Output the inline content of the CSS file

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@netlify
Copy link

netlify bot commented Mar 23, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 9d95842
🔍 Latest deploy log https://app.netlify.com/sites/rsbuild/deploys/67dff23670627700084a1943
😎 Deploy Preview https://deploy-preview-4849--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 71 (🔴 down 6 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant