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 not working during development #119

Merged
merged 1 commit into from
Jun 29, 2024
Merged

Conversation

cezaraugusto
Copy link
Member

This was a regression during a fix for styles in content_scripts.

The error happened because the Html Plugin does not emit a tag during development as it uses style-loader to inject styles in the <style> tag. Using useMiniCssExtractPlugin means we do not use the style-loader so the styles are emitted in a separate file instead of the style injection, but the Html Plugin won't see it during development.

Fix #105

@cezaraugusto cezaraugusto requested a review from OSpoon June 28, 2024 18:51
@cezaraugusto cezaraugusto self-assigned this Jun 28, 2024
Copy link
Member

@OSpoon OSpoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done.

@cezaraugusto cezaraugusto merged commit 39397bd into main Jun 29, 2024
6 checks passed
@cezaraugusto cezaraugusto deleted the bug-no-styles-in-dev branch June 29, 2024 13:10
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.

Import styles in development mode do not take effect
2 participants