-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts
32 lines (31 loc) · 1.25 KB
/
vite.config.ts
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 react from '@vitejs/plugin-react';
import UnoCSS from 'unocss/vite';
import monkey from 'vite-plugin-monkey';
export default defineConfig({
plugins: [
UnoCSS({
mode: 'shadow-dom',
}),
react(),
monkey({
entry: 'src/load.ts',
userscript: {
name: {
'': 'ChatGPT Question Navigation sidebar',
'zh-CN': 'ChatGPT 问题导航侧边栏',
},
description: {
'': 'It provides a convenient question sidebar directory for the ChatGPT official website. It automatically collects the questions asked by users on the current session page and displays them on the sidebar, enabling quick navigation to the location of historical questions.',
'zh-CN':
'为ChatGPT官网提供了一个便捷的问题侧边栏目录。它能够自动搜集当前会话页面的用户提的问题,并展示在侧边栏上,提供快速导航到历史问题的位置的能力。',
},
namespace: 'npm/chatgpt-question-navigator',
match: ['https://chatgpt.com/**'],
author: 'okokdi',
supportURL: 'https://github.com/JianJroh/chatgpt-question-navigator/issues',
license: 'GPL-3.0-or-later',
},
}),
],
});