samrum / vite-plugin-web-extension

A vite plugin for generating cross browser platform, ES module based web extensions.
MIT License
323 stars 33 forks source link

import.meta.PLUGIN_WEB_EXT_CHUNK_CSS_PATHS doesn't contain all CSS files referenced #128

Open 1mehal opened 12 months ago

1mehal commented 12 months ago

I'm trying to load into shadow dom a simple page

<script lang="ts">
    import { Avatar } from '@skeletonlabs/skeleton';
</script>

<div>
    <h1>My New Web Extension</h1>
</div>
<Avatar src="https://i.pravatar.cc/" />
<style>
    :host {
        position: fixed;
        display: inline-block;
        top: 29px;
        right: 20px;
        z-index: 99999999;
    }
</style>

This requires to load Skeleton UI css, however in import.meta.PLUGIN_WEB_EXT_CHUNK_CSS_PATHS I only have 1 available CSS from my actual page, and the same in webAccessibleResources -> I don't have CSS files listed.

Is there any workaround for this?