vite-web-extension icon indicating copy to clipboard operation
vite-web-extension copied to clipboard

For vite version 4 and up use "@crxjs/vite-plugin": "^2.0.0-beta.23",

Open Mindaugas3 opened this issue 1 year ago • 4 comments

Some version incompatibility with newer versions of Vite, such as 4.5.2.

Generally, i've been playing around with this boilerplate (with Material UI instead of the default tailwind CSS). Pretty good!

Mindaugas3 avatar Feb 08 '24 14:02 Mindaugas3

Also injecting tailwind in content will break some pages (including GitLab and Gmail) so i had to remove the import

Mindaugas3 avatar Feb 09 '24 20:02 Mindaugas3

Some version incompatibility with newer versions of Vite, such as 4.5.2.

Generally, i've been playing around with this boilerplate (with Material UI instead of the default tailwind CSS). Pretty good!

Raised: https://github.com/JohnBra/vite-web-extension/pull/31

sukantamaikap avatar Feb 29 '24 11:02 sukantamaikap

Also injecting tailwind in content will break some pages (including GitLab and Gmail) so i had to remove the import

I ran into the same issue. Not sure what the best work around is without heavily modifying things.

stevenirby avatar Feb 29 '24 14:02 stevenirby

just remove the css import from content scripts index.tsx. That somehow worked for me

Mindaugas3 avatar Mar 07 '24 19:03 Mindaugas3

@stevenirby & @Mindaugas3 You could try to give the tailwind stuff a prefix (see docs). I think this might solve your problem

JohnBra avatar May 11 '24 02:05 JohnBra

I figured this out eventually. I wasn't injecting things into the shadow dom correctly.

stevenirby avatar May 11 '24 05:05 stevenirby