Skip to content
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

fix(styles): include CSS files in side effects #11600

Closed

Conversation

metonym
Copy link
Collaborator

@metonym metonym commented Jun 12, 2022

Closes #11599

This PR includes the CSS files in the side effects of @carbon/styles.

Changelog

Changed

fix(styles): include CSS files in side effects

Testing / Reviewing

I tested this locally in my webpack app. Without the CSS files included in the side effects, webpack was ignoring the styles. With the CSS files included, the styles appeared as expected.

@metonym metonym requested a review from a team as a code owner June 12, 2022 15:22
@netlify
Copy link

netlify bot commented Jun 12, 2022

Deploy Preview for carbon-components-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 1a4068c
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/62a775d797fe5200089821d5
😎 Deploy Preview https://deploy-preview-11600--carbon-components-react.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 settings.

@netlify
Copy link

netlify bot commented Jun 12, 2022

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 1a4068c
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/62a775d779e76800091b5da0
😎 Deploy Preview https://deploy-preview-11600--carbon-elements.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 settings.

@metonym metonym force-pushed the carbon-styles-side-effects branch from 3e2b87a to 1a4068c Compare June 13, 2022 17:37
@metonym
Copy link
Collaborator Author

metonym commented Jun 13, 2022

Closing in favor of #11608

@metonym metonym closed this Jun 13, 2022
@joshblack
Copy link
Contributor

@metonym yikes, I'm so sorry I didn't see this before I made #11608! Happy to close that one in preference of this one

@metonym
Copy link
Collaborator Author

metonym commented Jun 14, 2022

@joshblack Not a problem; let's go with yours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Bug]: @carbon/styles should include .css in side effects
2 participants