Skip to content

Commit c9e9ab4

Browse files
committed
fix: update base path in Vite configuration and adjust script paths in HTML
1 parent b23f927 commit c9e9ab4

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" href="/favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<link href="/src/assets/styles/tailwind.css" rel="stylesheet" />
87
</head>
98
<body>
109
<div id="app"></div>
11-
<script type="module" src="/src/main.ts"></script>
10+
<script type="module" src="src/main.ts"></script>
1211
</body>
1312
</html>

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { createApp } from 'vue'
22
import App from '@/App.vue'
3+
import '@/assets/styles/tailwind.css'
34

45
createApp(App).mount('#app')

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import tailwindcss from '@tailwindcss/vite'
77

88
// https://vite.dev/config/
99
export default defineConfig({
10-
base: process.env.VITE_BASE_PATH || '/easy-portrait/',
10+
base: process.env.VITE_BASE_PATH || '/',
1111
plugins: [
1212
vue({
1313
template: {

0 commit comments

Comments
 (0)