We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd879b2 commit 6839c2dCopy full SHA for 6839c2d
1 file changed
plugins/userscript.plugin.ts
@@ -23,6 +23,7 @@ interface UserScriptOptions {
23
updateURL: string;
24
downloadURL: string;
25
supportURL: string;
26
+ license: string;
27
include: string[];
28
match: string[];
29
exclude: string[];
@@ -131,6 +132,10 @@ export function generateHeader() {
131
132
if (userscript.supportURL) {
133
headers.push(`// @supportURL ${userscript.supportURL}`);
134
}
135
+ // Add userscript header's license.
136
+ if (userscript.license) {
137
+ headers.push(`// @license ${userscript.license}`);
138
+ }
139
// Add userscript header's includes.
140
if (userscript.include && userscript.include instanceof Array) {
141
for (const include of userscript.include) {
0 commit comments