0.3.7 • Published 6 months ago

rollup-plugin-userscript v0.3.7

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

rollup-plugin-userscript

NPM License Downloads

Automatically parse metadata and set @grants.

With this plugin, @grants for GM_* functions will be added at compile time.

Usage

Add the plugin to rollup.config.js:

import userscript from 'rollup-plugin-userscript';

const plugins = [
  // ...
  userscript(meta => meta.replace('process.env.AUTHOR', pkg.author)),
];

Import the metadata file with a suffix ?userscript-metadata in your script:

import './meta.js?userscript-metadata';
0.3.6

6 months ago

0.3.5

7 months ago

0.3.7

6 months ago

0.3.4

11 months ago

0.3.3

11 months ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.1-0.0

2 years ago

0.1.1

4 years ago

0.1.0

4 years ago