Open zf1998 opened 1 year ago
@zf1998 I know nothing about vue but i'm pretty sure that the public dir is for static files just like in React, In that case you can use the assets folder given inside of the src folder and that hopefully solves your problem.
You can use the assets folder by replacing any images or icons like
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
to
<link rel="icon" href="~/src/assets/favicon.ico">
Build tool
Vite
Where do you see the problem?
Describe the bug
I used the Windows system for packaging, but there was no public directory in the packaging results. Looking at the source code, it's probably here.
The 'publicDir' path does not match expectations
Reproduction
Clone this respository " https://github.com/mubaidr/vite-vue3-chrome-extension-v3 ", Install dependencies,than run 'pnpm dev'.![image](https://github.com/crxjs/chrome-extension-tools/assets/28880564/2f7e0763-aa80-4b67-9d74-b14a20d6a2b1)
Logs
No response
System Info
Severity
annoyance