Skip to content

Commit fe05f7c

Browse files
Added Vite config
1 parent 81cdd68 commit fe05f7c

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

chat-ui-quince/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
<script>
1515
console.log('After loading GIS script');
1616
</script>
17-
<script src="/src/main.js"></script>
18-
<script src="/src/google.js"></script>
17+
<!-- Remove these; Vite will add bundled paths -->
18+
<!-- <script src="/src/main.js"></script> -->
19+
<!-- <script src="/src/google.js"></script> -->
1920

2021
</head>
2122
<body>

chat-ui-quince/vite.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { defineConfig } from 'vite';
2+
3+
export default defineConfig({
4+
root: './', // Root is where index.html lives
5+
build: {
6+
rollupOptions: {
7+
input: {
8+
main: './src/main.js',
9+
google: './src/google.js',
10+
app: './index.html' // Explicitly include index.html as an entry
11+
}
12+
}
13+
}
14+
});

0 commit comments

Comments
 (0)