Files
foundryvtt-admin/frontend/vite.config.ts
T
octoturge 460d136d21 chore: initial commit of foundryvtt-admin
Spun out of the hbm-books working folder into its own repo. A small
backend+frontend+COBOL admin tool for managing Foundry VTT worlds
(socket inspection, join/shutdown debugging).
2026-08-17 21:46:42 +02:00

26 lines
505 B
TypeScript

import { defineConfig } from 'vite';
import tailwindcss from '@tailwindcss/vite';
import pug from 'pug';
export default defineConfig({
plugins: [
tailwindcss(),
{
name: 'vite-plugin-pug',
transform(src, id) {
if (id.endsWith('.pug')) {
const html = pug.compile(src)();
return {
code: `export default ${JSON.stringify(html)};`,
map: null
};
}
}
}
],
server: {
port: 5173,
host: true
}
});