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

in content script css import is not working in production build (its working perfectly in development build) #39

Open
KrishEnacton opened this issue Feb 4, 2022 · 2 comments

Comments

@KrishEnacton
Copy link

KrishEnacton commented Feb 4, 2022

No description provided.

@KrishEnacton KrishEnacton changed the title css import is not working in production build (its working perfectly in development build) in content script css import is not working in production build (its working perfectly in development build) Feb 4, 2022
@lipstick-turtleback
Copy link

i have exactly the same problem.

solution is to add manually your content.css file to public folder and edit public/manifest.json to add following line:

  "content_scripts": [
    {
      "matches": [
        ...
      ],
      "css": ["content.css"],

then content.css is injected in final build.

@lipstick-turtleback
Copy link

however this should be fixed by @VasilyShelkov in future releases :)

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

No branches or pull requests

2 participants