45 lines
1.0 KiB
TypeScript
45 lines
1.0 KiB
TypeScript
import { fileURLToPath, URL } from 'node:url';
|
|
import { defineConfig } from 'vite';
|
|
import defineMainConfig from '../../vite.config';
|
|
import { mergeConfig } from 'vite';
|
|
|
|
export default defineConfig(
|
|
mergeConfig(defineMainConfig, {
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
})
|
|
);
|
|
|
|
// https://vitejs.dev/config/
|
|
// export default defineConfig({
|
|
// // base: 影响打包静态资源的路径
|
|
// base: './',
|
|
// plugins: [
|
|
// vue(),
|
|
// vueJsx(),
|
|
// tailwindcss(),
|
|
// AutoImport({
|
|
// imports: ['vue', 'vue-router', 'pinia', { 'naive-ui': ['useDialog', 'useMessage', 'useNotification', 'useLoadingBar'] }],
|
|
// }),
|
|
// Components({
|
|
// resolvers: [NaiveUiResolver()],
|
|
// }),
|
|
// ],
|
|
// resolve: {
|
|
// alias: {
|
|
// '@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
// },
|
|
// },
|
|
// css: {
|
|
// preprocessorOptions: {
|
|
// scss: { api: 'modern-compiler' },
|
|
// },
|
|
// },
|
|
// server: {
|
|
// host: true,
|
|
// },
|
|
// });
|