mirror of
https://github.com/pionxzh/chatgpt-exporter.git
synced 2026-07-23 09:00:51 -05:00
34 lines
1.0 KiB
TypeScript
34 lines
1.0 KiB
TypeScript
import { defineConfig } from 'vite'
|
|
import monkey from 'vite-plugin-monkey'
|
|
import packageJson from './package.json'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
// https://github.com/lisonge/vite-plugin-monkey/issues/10#issuecomment-1207264978
|
|
esbuild: {
|
|
charset: 'utf8',
|
|
},
|
|
plugins: [
|
|
monkey({
|
|
entry: 'src/main.ts',
|
|
userscript: {
|
|
'name': packageJson.title,
|
|
'author': packageJson.author,
|
|
'namespace': packageJson.author,
|
|
'description': packageJson.description,
|
|
'license': packageJson.license,
|
|
'match': 'https://chat.openai.com/chat',
|
|
'icon': 'https://chat.openai.com/favicon.ico',
|
|
'run-at': 'document-start',
|
|
},
|
|
build: {
|
|
fileName: 'chatgpt.user.js',
|
|
minifyCss: false,
|
|
},
|
|
server: {
|
|
open: true,
|
|
},
|
|
}),
|
|
],
|
|
})
|