-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
46 lines (45 loc) · 1.18 KB
/
vite.config.js
File metadata and controls
46 lines (45 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import mpaPlugin from 'vite-plugin-mpa-plus';
import autoprefixer from 'autoprefixer';
// noinspection JSUnusedGlobalSymbols
export default defineConfig({
plugins: [
react(),
mpaPlugin({
pages: {
'multi_account': {
entry: './src/components/main.jsx',
filename: 'multi_account.html',
template: '/src/pages/multi_page_template.html'
},
'multi_appointment': {
entry: './src/components/main.jsx',
filename: 'multi_appointment.html',
template: '/src/pages/multi_page_template.html'
},
'multi_gift_vouchers': {
entry: './src/components/main.jsx',
filename: 'multi_gift_vouchers.html',
template: '/src/pages/multi_page_template.html'
},
'multi_online_shop': {
entry: './src/components/main.jsx',
filename: 'multi_online_shop.html',
template: '/src/pages/multi_page_template.html'
},
'': {
entry: './src/components/main.jsx',
filename: 'index.html',
template: '/src/pages/single_page_template.html'
}
}
})
],
css: {
postcss: {
plugins: [autoprefixer({})]
}
},
build: { emptyOutDir: true }
});