-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathvite.config.js
More file actions
32 lines (31 loc) · 891 Bytes
/
Copy pathvite.config.js
File metadata and controls
32 lines (31 loc) · 891 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
28
29
30
31
32
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import monkey, { cdn } from 'vite-plugin-monkey';
import pkg from './package.json';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
monkey({
entry: 'src/main.js',
userscript: {
icon: 'https://framerusercontent.com/images/tCHbBovHGLAJDNKRG1lKfavenFs.png',
name: "nextchat-themes",
namespace: 'https://github.com/anghunk/UserScript',
description: "NextChat 插件,修改 UI 主题!",
version: pkg.version,
match: [
'*://app.nextchat.dev/*',
'*://nextchat.oaipro.com/*',
],
},
build: {
externalGlobals: {
// require 引入
vue: cdn.unpkg('Vue', 'dist/vue.global.prod.js'),
},
minify: false, // 不混淆
},
}),
],
});