460d136d21
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).
26 lines
505 B
TypeScript
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
|
|
}
|
|
});
|