Skip to content

fix: Prevent Unlisted CSS from being excluded in the build when using CSS preprocessor #1590

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

PortalCube
Copy link

Overview

Currently, the build function of viteBuilder determines whether a file is a CSS entrypoint by checking if its file extension ends with .css. As a result, Unlisted CSS using preprocessors like Sass are not built as CSS entrypoints and ignored during the build.

This PR updates the CSS entrypoint detection to use the group.type value and adds e2e tests for CSS entrypoints.

This is my first PR to an open-source project, so if there's anything I missed or did incorrectly, please let me know. Thanks!

Manual Testing

Please check the CSS entrypoint e2e tests I added to the PR.

Related Issue

This PR closes #1580.

Copy link

netlify bot commented Apr 18, 2025

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 4dbaec2
🔍 Latest deploy log https://app.netlify.com/sites/creative-fairy-df92c4/deploys/68021f4a6a3aae0008b531ba
😎 Deploy Preview https://deploy-preview-1590--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unlisted CSS using preprocessor does not build css file
1 participant