A Rollup plugin for defining userscript metadata blocks, suitable for use with Tampermonkey, Violentmonkey, and other userscript managers.
npm install @editor-x/rollup-plugin-userscriptA Rollup plugin for defining userscript metadata blocks, suitable for use with Tampermonkey, Violentmonkey, and other userscript managers.
@grant metadata based on the GM API functions usedbash
npm install @editor-x/rollup-plugin-userscript --save-dev
`Usage
Add the plugin to your rollup.config.js:`js
import userscript from '@editor-x/rollup-plugin-userscript';export default {
// ...your config
plugins: [
userscript({
// plugin options
})
]
};
``