|
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from '@midwayjs/hooks-kit';
|
|
|
|
import { resolve } from "path";
|
|
|
|
export default defineConfig({
|
|
vite: {
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: [
|
|
{
|
|
find: "@",
|
|
replacement: resolve(__dirname, "src")
|
|
}
|
|
]
|
|
},
|
|
},
|
|
});
|