♻️ refactor: fix production build
This commit is contained in:
+7
-10
@@ -1,21 +1,18 @@
|
||||
import { defineConfig } from 'vitest/config'
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react-swc'
|
||||
import viteTsconfigPaths from 'vite-tsconfig-paths'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react(), viteTsconfigPaths()],
|
||||
resolve: {
|
||||
alias: {
|
||||
components: '/src/components',
|
||||
style: '/src/style',
|
||||
},
|
||||
},
|
||||
server: {
|
||||
open: true,
|
||||
host: true,
|
||||
},
|
||||
test: {
|
||||
watch: false,
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
setupFiles: ['./vitest.setup.ts'],
|
||||
coverage: {
|
||||
provider: 'istanbul',
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user