Open adenix opened 2 months ago
I have the same issue
+1
Same issue. One workaround would be to place the web accessible content inside a public
directory and update the resources
path accordingly.
Ahh, I see, you're expecting the files to be copied into dist/
for you... Unfortunately the plugin doesn't do this, it probably should, but I'm not adding any more features to this package myself.
I'd recommend putting the files into the public directory if they're assets that don't need to be processed by Vite, or if they do (like shown in the original issue), add the inputs to additonalInputs
to have Vite bundle them.
Hello,
I also need to build ts
files. Sorry I'm new to web extension and vite but where does additonalInputs
come from ? I couldn't find it in vite-plugin-web-extension`'s doc or vite's doc.
Summary
Including 'web_accessible_resources' in the manifest file does not result in those resources being compiled to the dist folder.
Reproduction
Add a
web_accessible_resources
block to the manifest.json file.Environment