From 3ab68f9324902e371b2d4f2089e71d69154004da Mon Sep 17 00:00:00 2001 From: xsf Date: Fri, 30 Aug 2024 19:14:26 +0800 Subject: [PATCH] Update vite.config.ts --- vite.config.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 133ae40..89e6840 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,6 +1,7 @@ import { createVitePlugins } from './config/vite/plugins'; import { resolve } from 'path'; import { ConfigEnv, UserConfigExport } from 'vite'; +import inspector from 'vite-plugin-dev-inspector' // import { viteMockServe } from 'vite-plugin-mock'; @@ -31,6 +32,11 @@ export default function ({ command }: ConfigEnv): UserConfigExport { host: true, hmr: true, }, - plugins: createVitePlugins(isProduction), + plugins: [ + createVitePlugins(isProduction), + inspector({ + toggleButtonVisibility: 'never', + }), + ], }; }