Skip to content

Commit

Permalink
🚚 이미지, 아이콘 assets 폴더 public 하위로 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
LEEJW1953 committed Nov 21, 2023
1 parent 8b7b908 commit 4cf7b42
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 6 deletions.
6 changes: 5 additions & 1 deletion app/frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="src/assets/icons/morak.ico" />
<link
rel="icon"
type="image/svg+xml"
href="public/assets/icons/morak.ico"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
1 change: 0 additions & 1 deletion app/frontend/public/vite.svg

This file was deleted.

1 change: 0 additions & 1 deletion app/frontend/src/assets/react.svg

This file was deleted.

2 changes: 1 addition & 1 deletion app/frontend/src/constants/Main.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const MAIN_IMAGE = '/images/main.png';
export const MAIN_IMAGE = 'assets/images/main.png';
9 changes: 7 additions & 2 deletions app/frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ import path from 'path';
export default defineConfig({
plugins: [react(), vanillaExtractPlugin(), svgr()],
resolve: {
alias: [{ find: '@', replacement: path.resolve(__dirname, 'src') }],
alias: [
{
find: '@/assets',
replacement: path.resolve(__dirname, 'public/assets'),
},
{ find: '@', replacement: path.resolve(__dirname, 'src') },
],
extensions: ['.js', '.ts', '.jsx', '.tsx', '.css', '.css.ts'],
},
publicDir: 'src/assets',
});

0 comments on commit 4cf7b42

Please sign in to comment.