diff --git a/app/frontend/index.html b/app/frontend/index.html index 5d5a02c04..cb1c5a8ef 100644 --- a/app/frontend/index.html +++ b/app/frontend/index.html @@ -2,7 +2,11 @@
- + diff --git a/app/frontend/src/assets/icons/calendar.svg b/app/frontend/public/assets/icons/calendar.svg similarity index 100% rename from app/frontend/src/assets/icons/calendar.svg rename to app/frontend/public/assets/icons/calendar.svg diff --git a/app/frontend/src/assets/icons/google.svg b/app/frontend/public/assets/icons/google.svg similarity index 100% rename from app/frontend/src/assets/icons/google.svg rename to app/frontend/public/assets/icons/google.svg diff --git a/app/frontend/src/assets/icons/leftArrow.svg b/app/frontend/public/assets/icons/leftArrow.svg similarity index 100% rename from app/frontend/src/assets/icons/leftArrow.svg rename to app/frontend/public/assets/icons/leftArrow.svg diff --git a/app/frontend/src/assets/icons/map.svg b/app/frontend/public/assets/icons/map.svg similarity index 100% rename from app/frontend/src/assets/icons/map.svg rename to app/frontend/public/assets/icons/map.svg diff --git a/app/frontend/src/assets/icons/morak.ico b/app/frontend/public/assets/icons/morak.ico similarity index 100% rename from app/frontend/src/assets/icons/morak.ico rename to app/frontend/public/assets/icons/morak.ico diff --git a/app/frontend/src/assets/icons/morak.svg b/app/frontend/public/assets/icons/morak.svg similarity index 100% rename from app/frontend/src/assets/icons/morak.svg rename to app/frontend/public/assets/icons/morak.svg diff --git a/app/frontend/src/assets/icons/people.svg b/app/frontend/public/assets/icons/people.svg similarity index 100% rename from app/frontend/src/assets/icons/people.svg rename to app/frontend/public/assets/icons/people.svg diff --git a/app/frontend/src/assets/icons/profile.svg b/app/frontend/public/assets/icons/profile.svg similarity index 100% rename from app/frontend/src/assets/icons/profile.svg rename to app/frontend/public/assets/icons/profile.svg diff --git a/app/frontend/src/assets/images/main.png b/app/frontend/public/assets/images/main.png similarity index 100% rename from app/frontend/src/assets/images/main.png rename to app/frontend/public/assets/images/main.png diff --git a/app/frontend/public/vite.svg b/app/frontend/public/vite.svg deleted file mode 100644 index e7b8dfb1b..000000000 --- a/app/frontend/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/app/frontend/src/assets/react.svg b/app/frontend/src/assets/react.svg deleted file mode 100644 index 6c87de9bb..000000000 --- a/app/frontend/src/assets/react.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/app/frontend/src/constants/Main.ts b/app/frontend/src/constants/Main.ts index b018f4c10..3f4737aa5 100644 --- a/app/frontend/src/constants/Main.ts +++ b/app/frontend/src/constants/Main.ts @@ -1 +1 @@ -export const MAIN_IMAGE = '/images/main.png'; +export const MAIN_IMAGE = 'assets/images/main.png'; diff --git a/app/frontend/vite.config.ts b/app/frontend/vite.config.ts index ab1c10820..234cd9394 100644 --- a/app/frontend/vite.config.ts +++ b/app/frontend/vite.config.ts @@ -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', });