mirror of
https://github.com/xxxsf/vue3-h5-template.git
synced 2025-04-05 20:35:49 +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 { createVitePlugins } from './config/vite/plugins';
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
import { ConfigEnv, UserConfigExport } from 'vite';
|
import { ConfigEnv, UserConfigExport } from 'vite';
|
||||||
|
import inspector from 'vite-plugin-dev-inspector'
|
||||||
|
|
||||||
// import { viteMockServe } from 'vite-plugin-mock';
|
// import { viteMockServe } from 'vite-plugin-mock';
|
||||||
|
|
||||||
@ -31,6 +32,11 @@ export default function ({ command }: ConfigEnv): UserConfigExport {
|
|||||||
host: true,
|
host: true,
|
||||||
hmr: true,
|
hmr: true,
|
||||||
},
|
},
|
||||||
plugins: createVitePlugins(isProduction),
|
plugins: [
|
||||||
|
createVitePlugins(isProduction),
|
||||||
|
inspector({
|
||||||
|
toggleButtonVisibility: 'never',
|
||||||
|
}),
|
||||||
|
],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user