26 lines
617 B
TypeScript
26 lines
617 B
TypeScript
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
|
|
}
|
|
})
|
|
],
|
|
})
|