Skip to content

Commit

Permalink
fix: extension doesn't work after vite bump (rrweb-io#1507)
Browse files Browse the repository at this point in the history
* fix: extension doesn't work after vite bump
  • Loading branch information
YunFeng0817 authored Jun 12, 2024
1 parent 3d95191 commit 4beaf2d
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .changeset/lovely-files-sparkle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const SidebarContent = ({
<Image
borderRadius="md"
boxSize="2rem"
src={Browser.runtime.getURL('assets/icon128.png')}
src={Browser.runtime.getURL('icon128.png')}
alt="RRWeb Logo"
/>
</Link>
Expand Down
6 changes: 3 additions & 3 deletions packages/web-extension/src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
}
],
"icons": {
"16": "assets/icon16.png",
"48": "assets/icon48.png",
"128": "assets/icon128.png"
"16": "icon16.png",
"48": "icon48.png",
"128": "icon128.png"
},
"permissions": ["activeTab", "tabs", "storage", "unlimitedStorage"]
},
Expand Down
1 change: 0 additions & 1 deletion packages/web-extension/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ export default defineConfig({
);
return manifest;
},
assets: 'assets',
browser: process.env.TARGET_BROWSER,
webExtConfig: {
startUrl: ['github.com/rrweb-io/rrweb'],
Expand Down

0 comments on commit 4beaf2d

Please sign in to comment.