got it to work

This commit is contained in:
Tommy D. Rossi
2025-11-13 21:12:31 +01:00
parent ddde04fe63
commit 8e98c68de4
18 changed files with 328 additions and 516 deletions
+20 -1
View File
@@ -14,10 +14,29 @@
* limitations under the License.
*/
import { resolve } from 'path';
import { fileURLToPath } from 'url';
import { dirname, resolve } from 'path';
import { defineConfig } from 'vite';
import { viteStaticCopy } from 'vite-plugin-static-copy';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export default defineConfig({
plugins: [
viteStaticCopy({
targets: [
{
src: resolve(__dirname, 'icons/*'),
dest: 'icons'
},
{
src: resolve(__dirname, 'manifest.json'),
dest: '.'
}
]
})
],
build: {
lib: {
entry: resolve(__dirname, 'src/background.ts'),