StarkShang / vite-plugin-chrome-extension

A vite plugin to bundle chrome extensions for Manifest V3.
MIT License
460 stars 68 forks source link

Why popup page has no style? #33

Open Cjw-259 opened 1 year ago

Cjw-259 commented 1 year ago

Popup pages have no style , demo : https://github.com/Cjw-259/chrome-extension-demo ,Try npm run build, then add to chrome extension

dylan880507 commented 1 year ago

Popup pages have no style , demo : https://github.com/Cjw-259/chrome-extension-demo ,Try npm run build, then add to chrome extension

I also ran into the same problem. I found that popup html did not get a reference to css which belongs to popup. Just a thinking, you can append the css reference to body of popup html during the page generation.