2026-04-03 15:18:47 +08:00
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
|
import preact from '@preact/preset-vite';
|
|
|
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
|
import path from 'path';
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [preact(), tailwindcss()],
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
'@': path.resolve(__dirname, 'src'),
|
2026-04-12 15:02:23 +08:00
|
|
|
'boardgame-phaser': path.resolve(__dirname, '../framework/src/index.ts'),
|
2026-04-03 15:18:47 +08:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|