rollup-plugin-tampermonkey-append-meta
v1.1.2
Published
append meta to user script of tampermonkey.
Downloads
2
Readme
rollup-plugin-tampermonkey-append-meta
append meta to user script of tampermonkey.
usage
- install
- npm
npm i -D rollup-plugin-tampermonkey-append-meta
- pnpm
pnpm i -D rollup-plugin-tampermonkey-append-meta
- import
import appendMetaPlugin from 'rollup-plugin-tampermonkey-append-meta';
rollupOptions: {
plugins: [appendMetaPlugin()]
}
create meta file into the entry folder e.g. : if entry file path is
src/index.js
then meta file path issrc/tampermonkey
wirte meta file of tampermonkey
// ==UserScript==
// @name
// @namespace
// @version
// @description
// @author
// @match
// @icon
// @grant
// @run-at
// ...
// ==/UserScript==
- build
- npm
npm run build
- pnpm
pnpm run build