re-code the userscript
Some checks failed
Deploy App / docker (ubuntu-latest) (push) Failing after 7s
Some checks failed
Deploy App / docker (ubuntu-latest) (push) Failing after 7s
This commit is contained in:
32
webpack.config.js
Normal file
32
webpack.config.js
Normal file
@ -0,0 +1,32 @@
|
||||
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'),
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user