mirror of
https://github.com/davegallant/rfd-fyi.git
synced 2026-03-03 09:36:35 +00:00
Remove vuetify and add theme toggle button
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
// Plugins
|
||||
import Components from "unplugin-vue-components/vite";
|
||||
import Vue from "@vitejs/plugin-vue";
|
||||
import Vuetify, { transformAssetUrls } from "vite-plugin-vuetify";
|
||||
|
||||
// Utilities
|
||||
import { defineConfig } from "vite";
|
||||
@@ -10,16 +9,9 @@ import { fileURLToPath, URL } from "node:url";
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
Vue({
|
||||
template: { transformAssetUrls },
|
||||
}),
|
||||
Vuetify(),
|
||||
Vue(),
|
||||
Components(),
|
||||
],
|
||||
optimizeDeps: {
|
||||
exclude: ["vuetify"],
|
||||
include: ["axios", "vue-router", "vue-loading-overlay"],
|
||||
},
|
||||
define: { "process.env": {} },
|
||||
resolve: {
|
||||
alias: {
|
||||
@@ -54,7 +46,6 @@ export default defineConfig({
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
"vuetify": ["vuetify"],
|
||||
"vendor": ["axios", "dayjs", "vue-router", "vue-loading-overlay"],
|
||||
},
|
||||
chunkFileNames: "js/[name].[hash].js",
|
||||
@@ -76,4 +67,4 @@ export default defineConfig({
|
||||
chunkSizeWarningLimit: 1000,
|
||||
reportCompressedSize: true,
|
||||
},
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user