Initial commit

This commit is contained in:
2020-08-23 00:33:34 +02:00
commit 5776a66fb1
15 changed files with 8176 additions and 0 deletions

39
webpack.config.ts Normal file
View File

@@ -0,0 +1,39 @@
import * as path from 'path'
import * as webpack from 'webpack'
import HTMLWebpackPlugin from 'html-webpack-plugin'
const config: webpack.Configuration = {
mode: 'development',
entry: './src/index.tsx',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'foo.bundle.js'
},
devServer: {
contentBase: './dist'
},
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/
}
]
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
alias: {
'@app': path.resolve(__dirname, './src/')
}
},
devtool: 'inline-source-map',
plugins: [
new HTMLWebpackPlugin({
title: 'thingie',
template: 'index.html'
})
]
}
export default config