mirror of
https://github.com/colanode/colanode.git
synced 2025-12-15 19:27:46 +01:00
36 lines
663 B
TypeScript
36 lines
663 B
TypeScript
import { defineConfig } from 'vite';
|
|
|
|
// https://vitejs.dev/config
|
|
export default defineConfig(async () => {
|
|
const { viteStaticCopy } = await import('vite-plugin-static-copy');
|
|
return {
|
|
resolve: {
|
|
alias: {
|
|
'@': '/src',
|
|
},
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
external: [
|
|
'better-sqlite3',
|
|
'kysely',
|
|
'unzipper',
|
|
'mime-types',
|
|
'node-gyp-build',
|
|
'asynckit',
|
|
],
|
|
},
|
|
},
|
|
plugins: [
|
|
viteStaticCopy({
|
|
targets: [
|
|
{
|
|
src: 'assets/**/*',
|
|
dest: 'assets',
|
|
},
|
|
],
|
|
}),
|
|
],
|
|
};
|
|
});
|