You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
paopao-ce/web/vite.config.ts

28 lines
618 B

3 years ago
import { defineConfig } from 'vite'
import path from 'path';
import vue from '@vitejs/plugin-vue'
import Components from 'unplugin-vue-components/vite'
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
import { changePackageVersion } from './build/plugins';
3 years ago
// https://vitejs.dev/config/
export default defineConfig({
server: {
host: '0.0.0.0'
},
plugins: [
changePackageVersion(),
vue({
reactivityTransform: [/src/]
}),
3 years ago
Components({
resolvers: [NaiveUiResolver()]
})
],
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
})