Skip to content

Commit 1555b9f

Browse files
authored
Add Rollup input configuration for build
1 parent b3794ab commit 1555b9f

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

htmltoolkit/vite.config.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
import { defineConfig } from 'vite';
22
import tailwindcss from '@tailwindcss/vite';
33
import { sveltekit } from '@sveltejs/kit/vite';
4+
import { resolve } from 'path';
45

56
export default defineConfig({
67
plugins: [
7-
// 1) Tailwind via Vite plugin
88
tailwindcss(),
9-
// 2) SvelteKit
109
sveltekit()
1110
],
1211
server: {
1312
allowedHosts: true
13+
},
14+
build: {
15+
rollupOptions: {
16+
input: {
17+
main: resolve(__dirname, 'index.html'),
18+
google: resolve(__dirname, 'public/google56c6a7a79ef2edde.html')
19+
}
20+
}
1421
}
1522
});

0 commit comments

Comments
 (0)