diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2025-12-09 22:16:48 -0600 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2025-12-09 22:16:57 -0600 |
| commit | 3e7fdfb6c8a50c59ac933f701526ad1815dded92 (patch) | |
| tree | d2c699ff93e23d0fe45845a4c2dc05d820ec317b /vite.config.js | |
| parent | 39738b84e9164b0f2d01f22440548c4393160013 (diff) | |
| download | immich-frame-3e7fdfb6c8a50c59ac933f701526ad1815dded92.tar.xz immich-frame-3e7fdfb6c8a50c59ac933f701526ad1815dded92.zip | |
refactor codebase. Reorganize file structure. Replace webpack for vite. Setup setuptools for application. Move closer to distributable appv0.3.0
Diffstat (limited to 'vite.config.js')
| -rw-r--r-- | vite.config.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..d4d7421 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,20 @@ +import { defineConfig } from "vite" +import path from "path" +import tailwindcss from "@tailwindcss/vite" +import VitePluginSvgSpritemap from "@spiriit/vite-plugin-svg-spritemap" + +export default defineConfig({ + root: "src/client", + build: { + outDir: "../../dist", + emptyOutDir: true, + }, + plugins: [ + tailwindcss(), + VitePluginSvgSpritemap("./src/icons/*.svg", { + idify: filePath => path.basename(filePath).replace(/_[0-9]+dp_.*/, ""), + }), + ], + + mode: "development", +}) |
