Skip to content
Snippets Groups Projects
Commit b38eef0b authored by Midhun Suresh's avatar Midhun Suresh
Browse files

Do a multi-page vite build

parent f2f624f2
No related branches found
No related tags found
No related merge requests found
...@@ -2,5 +2,5 @@ node_modules ...@@ -2,5 +2,5 @@ node_modules
.DS_Store .DS_Store
dist dist
dist-ssr dist-ssr
build target
*.local *.local
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"version": "0.0.0", "version": "0.0.0",
"scripts": { "scripts": {
"start": "vite", "start": "vite",
"build": "tsc && vite build && vite --config parent-vite.config.js build", "build": "tsc && vite build",
"preview": "vite preview" "preview": "vite preview"
}, },
"devDependencies": { "devDependencies": {
......
...@@ -6,10 +6,10 @@ module.exports = defineConfig({ ...@@ -6,10 +6,10 @@ module.exports = defineConfig({
rollupOptions: { rollupOptions: {
input: { input: {
main: resolve(__dirname, 'chatterbox.html'), main: resolve(__dirname, 'chatterbox.html'),
parent: resolve(__dirname, '/src/parent-style.css') parent: resolve(__dirname, 'index.html')
} }
}, },
outDir: "./build/chatterbox" outDir: "./target"
}, },
server: { server: {
fs: { fs: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment