ScoreSaberUtils-Script/webpack.config.js
Liam 68e6b71020
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 34s
use a custom nginx config
2024-04-26 00:04:19 +01:00

38 lines
897 B
JavaScript

const path = require('path');
const { UserscriptPlugin } = require('webpack-userscript');
module.exports = {
entry: './src/index.ts',
mode: 'production',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
plugins: [
new UserscriptPlugin({
metajs: false,
headers: {
name: "ScoreSaber Utils",
author: "fascinated7 (discord)",
"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'}`,
}
})
],
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
},
};