amical/apps/electron/vite.widget.config.mts
Haritabh 9787240896
vite.build.fixes (#12)
* chore: add swift helper

* chore: separate out types into types pkg

* chore: only build apps/www for now

* chore: don't build swift helper as part of pnpm i

* chore: fix system audio mute and restore + resources embedding

* chore: resolve merge conflicts
2025-05-25 16:33:39 +05:30

26 lines
553 B
TypeScript

import { defineConfig } from 'vite';
import { resolve } from 'path';
// https://vitejs.dev/config
export default defineConfig(async () => {
// @ts-ignore
const { default: tailwindcss } = await import('@tailwindcss/vite');
return {
plugins: [tailwindcss()],
resolve: {
alias: {
'@': resolve(__dirname, 'src'),
},
},
optimizeDeps: {
exclude: ['better-sqlite3'],
},
build: {
rollupOptions: {
input: {
main: resolve(__dirname, 'fab.html'),
},
},
},
};
});