Reworking post-svelte build process for the extension

This commit is contained in:
koloml committed 2024-05-08 01:47:35 +04:00
1 parent 2ffef5951d
commit 571b8dd575
7 files changed
+351 -146

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import {packExtension} from "./.vite/pack-extension.js";
import path from "path";
import {fileURLToPath} from "url";
const __dirname = fileURLToPath(new URL('.', import.meta.url));
void packExtension({
rootDir: __dirname,
exportDir: path.resolve(__dirname, 'build'),
contentScriptsDir: path.resolve(__dirname, 'build', 'content')
});