ScoreSaberUtils-Script/webpack.config.js
Liam c8990f21cd
Some checks failed
Deploy App / docker (ubuntu-latest) (push) Failing after 7s
re-code the userscript
2024-04-25 23:39:26 +01:00

32 lines
656 B
JavaScript

const path = require('path');
const { UserscriptPlugin } = require('webpack-userscript');
module.exports = {
entry: './src/index.ts',
mode: process.env.NODE_ENV || 'development',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
plugins: [
new UserscriptPlugin({
headers: {
name: "ScoreSaber Utils",
"run-at": "document-end",
match: "https://scoresaber.com/*"
}
})
],
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
},
};