updating to better support general userscripts

This commit is contained in:
Jonas Pfalzgraf 2023-06-30 17:12:38 +02:00
parent 0eeaa9cb84
commit 32e70e621a
4 changed files with 208 additions and 1327 deletions

Binary file not shown.

1531
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,7 +1,7 @@
const fs = require("fs"); const fs = require("fs");
const pkg = require("../package.json"); const pkg = require("../package.json");
const config = require("../header.config.json"); const config = require("../header.config.json");
const targetFile = "./dist/" + pkg.name + ".bundle.js"; const targetFile = "./dist/" + pkg.name + ".user.js";
/** /**
* Appends header * Appends header

View file

@ -18,7 +18,7 @@ module.exports = {
extensions: ['.tsx', '.ts', '.js'], extensions: ['.tsx', '.ts', '.js'],
}, },
output: { output: {
filename: pkg.name + '.bundle.js', filename: pkg.name + '.user.js',
path: path.resolve(__dirname, 'dist'), path: path.resolve(__dirname, 'dist'),
}, },
}; };