react-ts-vite-template/vite.config.js

14 lines
274 B
JavaScript
Raw Permalink Normal View History

2021-10-29 17:38:30 +08:00
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
// https://vitejs.dev/config/
export default defineConfig({
2021-10-29 17:38:30 +08:00
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
});