-
vite.config.ts
npm i -D @types/node
import * as path from "path";
export default defineConfig({
plugins: [react()],
resolve: {
alias: [{ find: "@", replacement: path.resolve(__dirname, "src") }],
},
});
- tsconfig.json
{
"compilerOptions": {
// ...rest of the template
"types": ["node"],
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
}
-
코드 리팩토링하기
-
CSS
-
추가할 기능 생각해보기