ScoreSaberUtils-Script/webpack.config.js
Liam a558b4f746
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 32s
testing the test
2024-04-25 23:59:36 +01:00

37 lines
856 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",
"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'),
},
};