-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathvite.config.js
More file actions
27 lines (26 loc) · 589 Bytes
/
vite.config.js
File metadata and controls
27 lines (26 loc) · 589 Bytes
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
import { defineConfig } from 'vite';
import { resolve } from 'path';
import vue from '@vitejs/plugin-vue';
export default defineConfig({
plugins: [
vue(),
],
define: {
APP_VERSION: JSON.stringify(process.env.npm_package_version),
},
resolve: {
alias: {
"@": resolve(__dirname, "./src"),
},
},
build: {
minify: true, // set to false to make source code readable
rollupOptions: {
input: {
popup: resolve(__dirname, 'index.popup.html'),
stats: resolve(__dirname, 'index.stats.html'),
options: resolve(__dirname, 'index.options.html'),
},
},
},
});