Files
ScoreSaberUtils-Script/webpack.config.js

38 lines
897 B
JavaScript
Raw Normal View History

2024-04-25 23:39:26 +01:00
const path = require('path');
const { UserscriptPlugin } = require('webpack-userscript');
2024-04-25 23:39:26 +01:00
module.exports = {
entry: './src/index.ts',
mode: 'production',
2024-04-25 23:39:26 +01:00
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
plugins: [
new UserscriptPlugin({
2024-04-25 23:59:36 +01:00
metajs: false,
2024-04-25 23:39:26 +01:00
headers: {
name: "ScoreSaber Utils",
2024-04-26 00:04:19 +01:00
author: "fascinated7 (discord)",
2024-04-25 23:39:26 +01:00
"run-at": "document-end",
match: "https://scoresaber.com/*",
updateURL: "https://ssu.fascinated.cc/scripts/bundle.user.js",
downloadURL: "https://ssu.fascinated.cc/scripts/bundle.user.js",
version: `1.0.0-${process.env.GIT_REV || 'dev'}`,
2024-04-25 23:39:26 +01:00
}
})
],
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
},
};