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 content_scripts not working in production #172

Merged
merged 3 commits into from
Sep 6, 2024
Merged

Conversation

cezaraugusto
Copy link
Member

@cezaraugusto cezaraugusto commented Sep 6, 2024

Fix #166

This bug often pops up but hopefully this is a permanent fix. In webpack we use style-loader for dev and mini-css-extract-plugin for prod. In prod the content_script styles are emitted but we never reference them in the manifest. This PR fixes it.

Test plan is mostly running "build" in your favorite content_* and new_* templates and assert CSS works both in dev and prod.

@cezaraugusto cezaraugusto self-assigned this Sep 6, 2024
Copy link

codecov bot commented Sep 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

see 5 files with indirect coverage changes

Copy link

pkg-pr-new bot commented Sep 6, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/extension-js/extension.js/extension@172
pnpm add https://pkg.pr.new/extension-js/extension.js/extension-create@172
pnpm add https://pkg.pr.new/extension-js/extension.js/extension-develop@172

commit: 68e3189

@cezaraugusto
Copy link
Member Author

@OSpoon I'm going to merge this one for the next hotfix release but please report if I'm wrong

@cezaraugusto cezaraugusto merged commit fcd1d23 into main Sep 6, 2024
14 checks passed
@cezaraugusto cezaraugusto deleted the css-prod branch September 6, 2024 18:05
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.

content script react tailwind css issue
1 participant