-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
32 lines (31 loc) · 1.05 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
import { defineConfig } from 'vite'
import monkey from 'vite-plugin-monkey'
export default defineConfig({
plugins: [
monkey({
entry: 'src/main.ts',
userscript: {
name: 'bilibili 移动端',
namespace: 'https://github.com/jk278/bilibili-mobile',
description:
'Safari打开电脑模式,其它浏览器关闭电脑模式修改网站UA,获取舒适的移动端体验。',
version: '5.1.7.4',
author: 'jk278',
license: 'MIT',
'run-at': 'document-start',
icon: 'https://www.bilibili.com/favicon.ico',
match: ['https://*.bilibili.com/*'],
exclude: [
'https://message.bilibili.com/pages/nav/*',
'https://www.bilibili.com/blackboard/comment-detail.html?*',
],
grant: ['GM_registerMenuCommand', 'GM_getValue', 'GM_setValue'],
require: ['https://unpkg.com/js-md5@latest/src/md5.js'],
},
build: {
fileName: 'bilibili-mobile.js', // 输出文件名
outDir: 'dist', // 输出目录
},
}),
],
})