Skip to content

Commit

Permalink
Vite の場合は vite.config を編集すべきっぽい
Browse files Browse the repository at this point in the history
homepage 属性をいくらいじっても何も変わりません
  • Loading branch information
erutobusiness committed Dec 3, 2023
1 parent f75219d commit 7c759f9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="./vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<script type="module" crossorigin src="/assets/index-YnIXOLyF.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-4sK4E3Wk.css">
<script type="module" crossorigin src="./assets/index-S2U0xJH1.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-4sK4E3Wk.css">
</head>
<body>
<div id="root"></div>
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "react-dnd-detectioncompare",
"private": false,
"homepage": "https://visionary-japan.github.io/react_dnd_detectionCompare",
"version": "0.0.0",
"type": "module",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ import react from '@vitejs/plugin-react-swc'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: process.env.GITHUB_PAGES ? 'react_dnd_detectionCompare' : './',
})

0 comments on commit 7c759f9

Please sign in to comment.