0.4.2 • Published 1 year ago
rollup-plugin-userscript-metablock v0.4.2
rollup-plugin-userscript-metablock
Transform json file to userscript metablock and append on.
Metakeys documents:
Installation
npm install --save-dev rollup-plugin-userscript-metablockUsage
simplest
import metablock from 'rollup-plugin-userscript-metablock';
export default {
  input: 'main.js',
  output: {
    file: 'bundle.user.js',
    format: 'esm'
  },
  plugins: [metablock()],
};common
import metablock from 'rollup-plugin-userscript-metablock';
const pkg = require('package.json');
export default {
  input: 'main.js',
  output: {
    file: 'bundle.user.js',
    format: 'esm'
  },
  plugins: [metablock({
    file: './meta.json',
    override: {
      name: pkg.name,
      version: pkg.version,
      description: pkg.description,
      homepage: pkg.homepage,
      author: pkg.author,
      license: pkg.license,
    }
  })],
};You can find the options detail here, and meta details here.
Other
- If no grant, use @grant noneexplicitly
License
MIT
0.4.1
1 year ago
0.4.2
1 year ago
0.4.0
1 year ago
0.3.2
3 years ago
0.3.3
3 years ago
0.3.1
4 years ago
0.3.0
5 years ago
0.2.7
5 years ago
0.2.6
5 years ago
0.2.5
6 years ago
0.2.3
6 years ago
0.2.4
6 years ago
0.2.2
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
8 years ago
0.1.0
8 years ago