jhen0409 / react-chrome-extension-boilerplate

Boilerplate for Chrome Extension React.js project
MIT License
2.14k stars 388 forks source link

inject.js how to include css? #63

Open johnrosenbaud11 opened 7 years ago

johnrosenbaud11 commented 7 years ago

I can't seem to be able to add css to inject.js (the file containing injectApp) in any way, how to import/require/?

(I tried adding '< link > ' of cdn-hosted stylesheet in background.html to no avail, it won't read it. )

Thank you!

jhen0409 commented 7 years ago

You can try chrome.tabs.executeScript like inject bundle usage, it can also load css file.

guanpengchn commented 4 years ago

@jhen0409 can you give an example?