25
vite.config.ts
Normal file
25
vite.config.ts
Normal file
@ -0,0 +1,25 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import Userscript from 'vite-userscript-plugin'
|
||||
import { name, description, version } from './package.json';
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
Userscript({
|
||||
entry: 'src/main.ts',
|
||||
header: {
|
||||
name,
|
||||
description,
|
||||
version,
|
||||
namespace: 'noproompter',
|
||||
match: 'https://www.pixiv.net/*/tags/*',
|
||||
noframes:true,
|
||||
"run-at": "document-end",
|
||||
grant: ['GM.setValue', 'GM.addStyle', 'GM.getValue', 'GM.addElement']
|
||||
},
|
||||
server: {
|
||||
port: 3000
|
||||
}
|
||||
})
|
||||
],
|
||||
})
|
Reference in New Issue
Block a user