Update vite.config.ts

This commit is contained in:
xsf 2024-08-30 19:14:26 +08:00 committed by GitHub
parent bc8cbe4346
commit 3ab68f9324
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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',
}),
],
};
}