- Node.js >= 18
- pnpm >= 8
# Install pnpm
$ npm i -g pnpm
# Install and patch packages
$ pnpm install
# Build
$ pnpm build
Build produces two bundles inside dist
directory:
bundle.js
- comments and identifiers as isbundle.min.js
- produces minified one-liner with no comments
You can use any.
Template uses metablock generator rollup-plugin-userscript-metablock package with a patch to support the .cjs
extension.
Banner can be customized by changing the banner
inside rollup.config.ts
, example:
const banner = '\n/* any banner you want */\n'