Open twoer opened 1 year ago
我在 manifest 里面按照以下方式配置,发现无效。
content_scripts: [ { "matches": ["https://juejin.cn/*"], js: ['src/content/index.ts'], css: ['src/content/index.css'], }, ],
Add your css file's path to "web_accessible_resources" and you should be good to go.
Source: https://stackoverflow.com/questions/11553600/how-to-inject-css-using-content-script-file-in-chrome-extension
CSS changes still won't trigger a auto refresh.
我在 manifest 里面按照以下方式配置,发现无效。
content_scripts: [ { "matches": ["https://juejin.cn/*"], js: ['src/content/index.ts'], css: ['src/content/index.css'], }, ],