Skip to content

Commit

Permalink
TryinToFixPath
Browse files Browse the repository at this point in the history
Path issue maybe??
  • Loading branch information
Intermentality committed Dec 10, 2024
1 parent bcfa3fb commit 9ab87b2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
"resize-toolbox-images": "node ./bin/resize-toolbox-images.mjs"
},
"dependencies": {
"@types/node": "^22.10.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^6.27.0",
"shadertoy-react": "^1.1.2"
"shadertoy-react": "^1.1.2",
"url": "^0.11.4"
},
"devDependencies": {
"@monaco-editor/react": "^4.3.1",
Expand Down
8 changes: 4 additions & 4 deletions src/Pages/ProjectsPage/PGASGame.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Paragraph } from "../../Components/Paragraph";

import LevelsSS from "/src/PGAS24_LevelsSS.png";
import MainMenuSS from "/src/PGAS24_MainMenuSS.png";
import PowerupSS from "/src/PGAS24_PowerupSS.png";
import WarningSS from "/src/PGAS24_WarningSS.png";
import LevelsSS from "@src/PGAS24_LevelsSS.png";
import MainMenuSS from "@src/PGAS24_MainMenuSS.png";
import PowerupSS from "@src/PGAS24_PowerupSS.png";
import WarningSS from "@src/PGAS24_WarningSS.png";

export default function PGASGame(){
return <div className="relative grid place-items-center">
Expand Down
7 changes: 7 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
assetsInclude: ['**/*.PNG'],

resolve: {
alias: {
"@src": path.resolve(__dirname, "./src")
}
}
})

0 comments on commit 9ab87b2

Please sign in to comment.