Skip to content

Commit

Permalink
🔧 ts path
Browse files Browse the repository at this point in the history
  • Loading branch information
h-campos committed Apr 25, 2023
1 parent 96496b8 commit f1c8594
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

"baseUrl": ".",
"paths": {
"#/*": ["./lib/*"],
"#/*": ["src/components/*"],
"~/*": ["./public/*"]
}
},
Expand Down
6 changes: 6 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import { defineConfig } from 'vite'
import { resolve } from 'path'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'#': resolve(__dirname, './src/components'),
},
},
})

0 comments on commit f1c8594

Please sign in to comment.