mirror of
https://github.com/xsf0105/vue3-h5-template.git
synced 2025-04-05 19:41:57 +08:00
Update vite.config.ts
This commit is contained in:
parent
bc8cbe4346
commit
3ab68f9324
@ -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',
|
||||
}),
|
||||
],
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user