Client converted to TypeScript, client uses webpack

This commit is contained in:
2021-01-30 12:57:39 +02:00
parent 30e5d27b33
commit 1f6740c9df
13 changed files with 2804 additions and 496 deletions

22
client/webpack.config.js Normal file
View File

@@ -0,0 +1,22 @@
const path = require('path')
module.exports = {
entry: './src/app.ts',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'static/assets')
},
devtool: 'inline-source-map',
module: {
rules: [
{
test: /\.ts$/,
use: 'ts-loader',
exclude: /node_modules/
},
],
},
resolve: {
extensions: ['.ts', '.js']
}
}