-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.js
43 lines (42 loc) · 1.52 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
37
38
39
40
41
42
43
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import monkey, { cdn } from 'vite-plugin-monkey';
// https://vitejs.dev/config/
export default defineConfig({
server: {
host: 'localhost.bing.com',
https: {
key: './localhost.bing.com-key.pem',
cert: './localhost.bing.com.pem',
},
},
plugins: [
vue(),
monkey({
entry: 'src/main.js',
userscript: {
name: {
'': '必应聊天页面优化',
zh: '必应聊天页面优化',
en: 'New Bing Chat Helper'
},
icon: 'https://www.bing.com/sa/simg/favicon-trans-bg-blue-mg.ico',
author: 'zhangnew',
license: 'MIT',
description: {
'': '新的对话开头自动加上一些提示; 对话被强制结束的时候,自动复制最后一个问题,并粘贴到下一次对话; 及时问答功能,见 README',
zh: '新的对话开头自动加上一些提示; 对话被强制结束的时候,自动复制最后一个问题,并粘贴到下一次对话; 及时问答功能,见 README',
en: 'Automatic input prompt for new session and Automatic copy the last question when the session is ended; instant chat, see README',
},
namespace: 'https://github.com/zhangnew',
homepage: 'https://github.com/zhangnew/bing-chat-script',
match: ['https://www.bing.com/search*'],
},
build: {
externalGlobals: {
vue: cdn.jsdelivr('Vue', 'dist/vue.global.prod.js'),
},
},
}),
],
});