Commit b423387
committed
chore(icons): move icons from public/ to icons/, guard chrome.runtime
- icons/ now lives at repo root (not public/) so CRXJS can copy them
directly into dist/icons/ without Vite's publicDir interfering
- vite.config.ts: set publicDir: false; remove manual rollupOptions
input (CRXJS handles all entry points via manifest)
- scripts/gen-icons.mjs: update output path public/icons/ → icons/
- HacklmIcon.tsx: guard chrome.runtime.getURL with typeof check so
the component works in Storybook / non-extension environments1 parent b03bdad commit b423387
6 files changed
Lines changed: 8 additions & 9 deletions
File tree
- icons
- scripts
- src/components
File renamed without changes.
File renamed without changes.
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 58 | | |
64 | 59 | | |
0 commit comments