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
+6 -17
View File
@@ -14,28 +14,17 @@
* limitations under the License.
*/
import { resolve } from 'path';
import { fileURLToPath } from 'url';
import { dirname, resolve } from 'path';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { viteStaticCopy } from 'vite-plugin-static-copy';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
viteStaticCopy({
targets: [
{
src: '../../icons/*',
dest: 'icons'
},
{
src: '../../manifest.json',
dest: '.'
}
]
})
],
plugins: [react()],
root: resolve(__dirname, 'src/ui'),
build: {
outDir: resolve(__dirname, 'dist/'),