fix: extension doesn't work after vite bump (#1507)

* fix: extension doesn't work after vite bump
This commit is contained in:
Yun Feng
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 80ffdce245
commit e31a4a28c9
7 changed files with 6 additions and 5 deletions

View File

@@ -0,0 +1,2 @@
---
---

View File

@@ -117,7 +117,7 @@ const SidebarContent = ({
<Image <Image
borderRadius="md" borderRadius="md"
boxSize="2rem" boxSize="2rem"
src={Browser.runtime.getURL('assets/icon128.png')} src={Browser.runtime.getURL('icon128.png')}
alt="RRWeb Logo" alt="RRWeb Logo"
/> />
</Link> </Link>

View File

@@ -10,9 +10,9 @@
} }
], ],
"icons": { "icons": {
"16": "assets/icon16.png", "16": "icon16.png",
"48": "assets/icon48.png", "48": "icon48.png",
"128": "assets/icon128.png" "128": "icon128.png"
}, },
"permissions": ["activeTab", "tabs", "storage", "unlimitedStorage"] "permissions": ["activeTab", "tabs", "storage", "unlimitedStorage"]
}, },

View File

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@@ -84,7 +84,6 @@ export default defineConfig({
); );
return manifest; return manifest;
}, },
assets: 'assets',
browser: process.env.TARGET_BROWSER, browser: process.env.TARGET_BROWSER,
webExtConfig: { webExtConfig: {
startUrl: ['github.com/rrweb-io/rrweb'], startUrl: ['github.com/rrweb-io/rrweb'],