3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-06 10:37:19 +00:00

feat: vite dashboard tweaks/fixes

This commit is contained in:
Dragory 2025-06-01 19:37:10 +00:00
parent aaac328138
commit 177f13d1fc
No known key found for this signature in database
16 changed files with 94 additions and 128 deletions

View file

@ -1,22 +1,7 @@
import { defineConfig, Plugin } from "vite";
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import tailwind from "@tailwindcss/vite";
function htmlImport(): Plugin {
return {
name: "html-import",
transform(code, id) {
if (id.endsWith(".html")) {
return {
code: `export default ${JSON.stringify(code)};`,
map: null,
};
}
return null;
},
};
}
export default defineConfig((configEnv) => {
return {
server: {
@ -34,7 +19,6 @@ export default defineConfig((configEnv) => {
},
}),
tailwind(),
htmlImport(),
],
};
});