scripts/.terserrc.js

24 lines
781 B
JavaScript
Raw Normal View History

2022-12-31 10:15:23 +00:00
const preambles = {
'extended-player-profile': `// ==UserScript==
// @name Extended player profile
// @version 1.1.0
// @description Adds additional info and actions to a player's profile.
2022-12-31 10:15:23 +00:00
// @author Dawid Wysokiński - Kichiyaki - contact@dwysokinski.me
// @match https://*/game.php?*screen=info_player*
2023-01-29 08:43:27 +00:00
// @downloadURL ${process.env.PUBLIC_URL}/extended-player-profile.user.js
// @updateURL ${process.env.PUBLIC_URL}/extended-player-profile.user.js
2022-12-31 10:15:23 +00:00
// @icon https://www.google.com/s2/favicons?domain=plemiona.pl
// @grant none
// @run-at document-end
2023-01-29 08:43:27 +00:00
// ==/UserScript==`,
2022-12-31 10:15:23 +00:00
};
const preamble = preambles[process.env.PREAMBLE];
module.exports = preamble
? {
output: {
preamble: preamble,
},
}
: {};