Closed chansyawn closed 2 years ago
I have the same problem, hope to repair it soon 🤔
I found that the plugincrx:manifest-post
had this logic, and maybe should discard icons
? 🤔 @jacksteamdev
I've added icons to an integration test to ensure that manifest assets are copied from either the project root or the public dir.
This bugfix was released to NPM in @crxjs/vite-plugin@1.0.4 :rocket:
Build tool
Vite
Where do you see the problem?
Describe the bug
Plugin cannot find the icons file path when executing
vite build
, but the file has been duplicated to thedist
folder. The plugin looks like trying to get the file from the root directory, should the code here be changed toconfig.build.outDir
. https://github.com/crxjs/rollup-plugin-chrome-extension/blob/41ee1542f7ee470f8acddda1df15d2569509e008/packages/vite-plugin/src/node/plugin-manifest.ts#L275Reproduction
file structure
manifest.config.ts
Logs
System Info
Severity
annoyance