How to add additional icons into the extension build

Is there a way to include other icons in the build so that I can customise my extension icon depending on which url I'm on?

In the icon page within the documentation, I can see there are options to include icons for specific builds, however I would like to ask if there is a way to include other icons for the same build?

My psudo-code usecase:
chrome.tabs.onUpdated.addListener((tabId, tab) => {
    const tabUrlIsEnabled = ENABLED_URLS.some((url) => tab.url.includes(url))
    if (tabUrlIsEnabled) {
        chrome.action.setIcon({ path: 'assets/enabled.png' })
    } else {
        chrome.action.setIcon({ path: 'assets/disabled.png' })
    }
}
Was this page helpful?