Skip to content

Repository files navigation

rollup-plugin-userscript

A Rollup plugin for defining userscript metadata blocks, suitable for use with Tampermonkey, Violentmonkey, and other userscript managers.

Features

  • Define userscript metadata blocks in your Rollup build
  • Automatically generates the @grant metadata based on the GM API functions used
  • Compatible with Tampermonkey, Violentmonkey, and more

Installation

npm install @editor-x/rollup-plugin-userscript --save-dev

Usage

Add the plugin to your rollup.config.js:

importuserscriptfrom'@editor-x/rollup-plugin-userscript';exportdefault{// ...your configplugins: [userscript({// plugin options})]};

License

MIT

About

A Rollup plugin for defining userscript metadata blocks, suitable for use with Tampermonkey, Violentmonkey, and other userscript managers.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages