less ugly appearance switch

This commit is contained in:
taskylizard 2023-11-05 14:33:11 +05:30
parent 23878e3f3e
commit 34c1f13d8b
No known key found for this signature in database
GPG key ID: 5CABA3D642DDC497
5 changed files with 87 additions and 7 deletions

View file

@ -5,6 +5,7 @@ import { presetUno, presetAttributify, presetIcons } from "unocss";
import { commitRef, meta } from "./constants";
import { pwa } from "./pwa";
import { generateMeta } from "./hooks/meta";
import { fileURLToPath } from "url";
export default defineConfig({
title: "FMHY",
@ -54,6 +55,16 @@ export default defineConfig({
// Shut the fuck up
chunkSizeWarningLimit: Infinity,
},
resolve: {
alias: [
{
find: /^.*VPSwitchAppearance\.vue$/,
replacement: fileURLToPath(
new URL("./theme/components/ThemeSwitch.vue", import.meta.url),
),
},
]
}
},
themeConfig: {
search: {