1.在manifest中添加web_accessible_resources声明静态资源地址:
"web_accessible_resources": ["iframes/test.html"]
然后进行引入:
URL = chrome-extension://插件ID/iframes/test.html
注意 :因为插件的id是动态的 所以需要动态的获取
css中:__MSG_@@extension_id__
src: url(chrome-extension://__MSG_@@extension_id__/css/fonts/element-icons.woff) format("woff")
js中:chrome.runtime.getURL("iframes/notSupport.html")
src="${chrome.runtime.getURL("iframes/notSupport.html")}"