esbuild-plugin-userscript
v0.2.6
Published
ESbuild plugins for userscript engines
Downloads
77
Maintainers
Readme
esbuild-plugin-userscript
ESbuild plugin(s) for userscripts.
Available plugins:
userscript-inject-code
- Injects code fragment into compiled userscriptuserscript-metadata
- Injects metadata commentsuserscript-proxy
- Generates proxy scripts to bypass browser cache
Usage
As a single plugin:
import { userscript } from "esbuild-plugin-userscript"
build({
plugins: [
userscript({
// ...
})
]
})
As separate plugins:
import { userscript } from "esbuild-plugin-userscript"
build({
plugins: [
userscript.metadata({
// ...
})
]
})