mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-04-22 21:59:49 +08:00
🔧 按需导入
This commit is contained in:
@@ -6,8 +6,6 @@
|
||||
import * as Sentry from "@sentry/vue";
|
||||
import { createApp, defineCustomElement } from "vue";
|
||||
import { createVuetify } from "vuetify";
|
||||
import * as components from "vuetify/components";
|
||||
import * as directives from "vuetify/directives";
|
||||
|
||||
import App from "./App.vue";
|
||||
import TLink from "./components/web/t-link.vue";
|
||||
@@ -19,7 +17,7 @@ import "vuetify/styles";
|
||||
import "./assets/index.scss";
|
||||
|
||||
const app = createApp(App);
|
||||
const vuetify = createVuetify({ components, directives });
|
||||
const vuetify = createVuetify();
|
||||
|
||||
customElements.define("t-link", defineCustomElement(TLink));
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* vite 配置文件
|
||||
* @since Beta v0.9.9
|
||||
* @since Beta v0.10.1
|
||||
*/
|
||||
|
||||
import { sentryVitePlugin } from "@sentry/vite-plugin";
|
||||
@@ -17,7 +17,7 @@ export default defineConfig({
|
||||
define: { proEnv: process.env },
|
||||
plugins: [
|
||||
vue(),
|
||||
vuetify(),
|
||||
vuetify({ styles: true }),
|
||||
VueDevtools(),
|
||||
sentryVitePlugin({
|
||||
org: "teyvat-guide",
|
||||
|
||||
Reference in New Issue
Block a user