This commit is contained in:
Jonas Pfalzgraf 2022-08-23 17:48:57 +02:00
parent 2fc6859169
commit f61a73f2f6
10 changed files with 3151 additions and 1 deletions

24
webpack.config.js Normal file
View file

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