Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Build JS instead of html in vite

Daoud Clarked7ad64b4e0b1
diff --git a/front-end/vite.config.js b/front-end/vite.config.js
index e50fc19..4ebb214 100644
--- a/front-end/vite.config.js
+++ b/front-end/vite.config.js
@@ -1,12 +1,18 @@
import legacy from '@vitejs/plugin-legacy'
+import { resolve } from 'path'
export default {
root: './src',
base: '/static',
publicDir: '../assets',
build: {
- outDir: '../dist',
- minify: false
+ outDir: '../dist',
+ rollupOptions: {
+ input: {
+ index: resolve(__dirname, 'src/index.js'),
+ stats: resolve(__dirname, 'src/stats/index.html'),
+ },
+ },
},
plugins: [
legacy({