Skip to content

Commit

Permalink
settings: vite-config
Browse files Browse the repository at this point in the history
  • Loading branch information
0seo8 committed Sep 15, 2022
1 parent 85979e4 commit 520b345
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { resolve } from 'path'
import svgr from 'vite-plugin-svgr'

// https://vitejs.dev/config/
const __dirname = 'src'
export default defineConfig({
plugins: [react()],
plugins: [react(), svgr()],
resolve: {
alias: [{ find: '~', replacement: resolve(__dirname) }],
},
Expand Down

0 comments on commit 520b345

Please sign in to comment.