vite-plugin-web-extension icon indicating copy to clipboard operation
vite-plugin-web-extension copied to clipboard

Fonts imported by css are not web accessible

Open ttoino opened this issue 1 year ago • 2 comments

When I import local font files using css they get compiled but they are not web accessible, as they are not referenced in the manifest, and I can't add them manually because of the hash that is added.

ttoino avatar Jun 30 '23 14:06 ttoino

Can you provide a repo that reproduces the issue?

samrum avatar Jul 04 '23 00:07 samrum

Sure thing! In this repo, I ran npm init @samrum/vite-plugin-web-extension@latest, and left everything as default. Then I installed remixicon so I had a local font to test with and replaced the default code with a single index.css that just sets the font of every element to this one.

Running serve:firefox and navigating to a page I get the following errors in the console:

image

And the following when running serve:chrome:

image

ttoino avatar Jul 04 '23 03:07 ttoino