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:
parent
aaac328138
commit
177f13d1fc
16 changed files with 94 additions and 128 deletions
|
@ -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(),
|
||||
],
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue