mirror of https://github.com/ColorlibHQ/gentelella
34 lines
639 B
JavaScript
34 lines
639 B
JavaScript
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
root: '.',
|
|
publicDir: 'production',
|
|
build: {
|
|
outDir: 'dist',
|
|
emptyOutDir: true,
|
|
rollupOptions: {
|
|
input: {
|
|
main: 'production/index.html',
|
|
index2: 'production/index2.html',
|
|
index3: 'production/index3.html'
|
|
}
|
|
}
|
|
},
|
|
server: {
|
|
open: '/production/index.html',
|
|
port: 3000
|
|
},
|
|
optimizeDeps: {
|
|
include: ['jquery', 'bootstrap']
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
jquery: 'jquery'
|
|
}
|
|
},
|
|
define: {
|
|
global: 'globalThis',
|
|
'process.env': {},
|
|
'process.env.NODE_ENV': '"production"'
|
|
}
|
|
});
|