-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.ts
More file actions
31 lines (29 loc) · 831 Bytes
/
Copy pathvite.config.ts
File metadata and controls
31 lines (29 loc) · 831 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
30
31
import { readFileSync } from 'node:fs';
import { defineConfig } from 'vite';
import monkey from 'vite-plugin-monkey';
const pkg = JSON.parse(readFileSync('./package.json', 'utf-8'));
export default defineConfig({
plugins: [
monkey({
entry: 'src/index.ts',
userscript: {
name: 'GitHub Advanced Search',
namespace: 'https://github.com/quantavil/userscript/github-filter',
version: pkg.version,
description: pkg.description,
match: ['https://github.com/*'],
grant: ['GM_registerMenuCommand'],
icon: 'https://github.githubassets.com/favicons/favicon.svg',
license: 'MIT',
'run-at': 'document-idle'
},
build: {
fileName: 'github-filter.user.js'
}
})
],
build: {
minify: false,
target: 'es2022'
}
});