Chrome plugin CSS get URL file path from plugin folder


chrome-extension://[email protected]@extension_id/image.jpg


body {
background: url(“chrome-extension://[email protected]@extension_id/background.jpg”);

Remember to add the file to web_accessible_resources in the plugin’s manifest.json. Otherwise, the file will not be accessable to the plugins.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.