UserScriptProjectTemplate/webpack.config.ts
Jonas Pfalzgraf d63a0cf44b ⬆️ Upgrading
Upgrading the Project to new Package Versions and minor optimizations
2023-08-03 14:12:31 +02:00

24 lines
No EOL
545 B
TypeScript

const path = require('path');
const pkgjsn = require('./package.json');
module.exports = {
entry: './src/index.ts',
devtool: 'inline-source-map',
mode: 'production',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
output: {
filename: pkgjsn.name + '.user.js',
path: path.resolve(__dirname, 'dist'),
},
};