start project

This commit is contained in:
Hemmat
2026-08-07 21:17:17 +03:30
commit ea1e1eead6
121 changed files with 8108 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
/**
* Build-time only (Chapter 05) — this file never runs on the cPanel host.
* Two entries: the JS bundle (HTMX+Alpine+Chart.js/Grid.js glue) and the
* Tailwind CSS entry, each emitting a hashed file + manifest.json so
* Flask's asset() helper can resolve cache-busted filenames.
*/
import { defineConfig } from 'vite';
import { fileURLToPath } from 'node:url';
const root = fileURLToPath(new URL('.', import.meta.url));
export default defineConfig({
build: {
manifest: true,
outDir: 'app/static/dist',
emptyOutDir: false,
rollupOptions: {
input: {
main: `${root}app/static/src/js/main.js`,
css: `${root}app/static/src/css/main.css`,
},
},
},
});