-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
36 lines (35 loc) · 1.04 KB
/
vite.config.js
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
// vite.config.js
import { defineConfig } from 'vite';
import path from 'path';
const PACKAGE_ROOT = path.resolve(__dirname, 'src/renderer')
export default defineConfig({
root: PACKAGE_ROOT,
base: './',
build: {
outDir: path.resolve(__dirname, 'dist'),
emptyOutDir: true,
sourcemap: false,
minify: true,
rollupOptions: {
input:{
index: path.join(PACKAGE_ROOT, 'index.html'),
setting: path.join(PACKAGE_ROOT, 'setting.html'),
detail: path.join(PACKAGE_ROOT, 'detail.html'),
}
},
// Target Electron renderer process with the 'chrome' version
// corresponding to the Electron version you are using.
target: 'chrome89', // Example: replace '89' with the version of Chrome in your Electron
},
css: {
postcss: {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
],
},
},
server: {
port: 3000
},
});