Skip to content

Commit

Permalink
Merge pull request #325 from ttaerrim/assets-refactor
Browse files Browse the repository at this point in the history
[Refactor] assets 디렉토리 관리
  • Loading branch information
ttaerrim authored Dec 6, 2023
2 parents 74aeb68 + 4f71b43 commit 8d156c4
Show file tree
Hide file tree
Showing 20 changed files with 4 additions and 15 deletions.
6 changes: 1 addition & 5 deletions app/frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link
rel="icon"
type="image/svg+xml"
href="public/assets/icons/morak.ico"
/>
<link rel="icon" type="image/svg+xml" href="public/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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
1 change: 0 additions & 1 deletion app/frontend/src/constants/Main.ts

This file was deleted.

1 change: 0 additions & 1 deletion app/frontend/src/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './Main';
export * from './Map';
export * from './MogacoPost';
export * from './env';
Expand Down
3 changes: 2 additions & 1 deletion app/frontend/src/pages/Main/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ReactComponent as GoogleIcon } from '@/assets/icons/google.svg';
import MAIN_IMAGE from '@/assets/images/main.png';
import { Button } from '@/components';
import { MAIN_IMAGE, URL } from '@/constants';
import { URL } from '@/constants';
import { getCookies } from '@/utils';

import * as styles from './index.css';
Expand Down
8 changes: 1 addition & 7 deletions app/frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ import path from 'path';
export default defineConfig({
plugins: [react(), vanillaExtractPlugin(), svgr()],
resolve: {
alias: [
{
find: '@/assets',
replacement: path.resolve(__dirname, 'public/assets'),
},
{ find: '@', replacement: path.resolve(__dirname, 'src') },
],
alias: [{ find: '@', replacement: path.resolve(__dirname, 'src') }],
extensions: ['.js', '.ts', '.jsx', '.tsx', '.css', '.css.ts'],
},
});

0 comments on commit 8d156c4

Please sign in to comment.