Skip to content

Commit

Permalink
Fix build issue and prepare deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
fadihanna123 committed Jul 24, 2024
1 parent c8d11b0 commit 449a910
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"prepare": "husky"
"prepare": "husky",
"deploy": "yarn && yarn build && gh-pages -d dist"
},
"dependencies": {
"fs": "^0.0.1-security",
Expand All @@ -35,5 +36,6 @@
"typescript": "^5.4.5",
"typescript-eslint": "^7.12.0",
"vite": "^5.2.12"
}
},
"homepage": "https://fadihanna123.github.io/my-cv"
}
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";

// Components
import "./styles/App.css";
import { Layout } from "./app/";
import Layout from "./app/Layout";

const App: React.FC = () => <Layout />;

Expand Down
2 changes: 1 addition & 1 deletion src/app/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default as Layout } from "./Layout";
export * from "./Layout";
2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import ReactDOM from "react-dom/client";

// Components
import App from "./App.tsx";
import App from "./App";
import "./styles/index.css";

ReactDOM.createRoot(document.getElementById("root")!).render(
Expand Down
2 changes: 1 addition & 1 deletion src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ img {
}

.container {
background: conic-gradient(red 45deg, yellow 90deg, green 210deg);
background: conic-gradient(red 45deg, green 210deg);
font-family: Verdana, Geneva, Tahoma, sans-serif;
color: #fff;
font-weight: bold;
Expand Down
4 changes: 4 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ export default defineConfig({
usePolling: true,
},
},
base: "",
build: {
outDir: "dist",
},
plugins: [react()],
});

0 comments on commit 449a910

Please sign in to comment.