mirror of
https://github.com/JosunLP/UserScriptProjectTemplate.git
synced 2025-06-21 10:11:07 +00:00
updating to better support general userscripts
This commit is contained in:
parent
0eeaa9cb84
commit
32e70e621a
4 changed files with 208 additions and 1327 deletions
Binary file not shown.
1531
package-lock.json
generated
1531
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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
|
||||||
|
|
|
@ -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'),
|
||||||
},
|
},
|
||||||
};
|
};
|
Loading…
Add table
Reference in a new issue