forked from jdysya/pikpakHelpr-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
29 lines (28 loc) · 887 Bytes
/
vite.config.js
File metadata and controls
29 lines (28 loc) · 887 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
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import monkey, { cdn } from 'vite-plugin-monkey';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
monkey({
entry: 'src/main.js',
userscript: {
icon: 'https://www.google.com/s2/favicons?sz=64&domain=mypikpak.com',
namespace: 'http://tampermonkey.net/',
match: ['https://mypikpak.com/*'],
author: 'jdysya',
grant: ['unsafeWindow', 'GM_xmlhttpRequest'],
license: 'MIT',
runAt: 'document-start',
name: 'pikpak助手plus',
description: 'pikpak网盘助手的增强版,搭配代理可实现直连下载,支持推送文件夹到aria2中!'
},
build: {
externalGlobals: {
vue: cdn.jsdelivr('Vue', 'dist/vue.global.prod.js'),
},
},
}),
],
});