This commit is contained in:
2020-08-19 16:48:24 +02:00
commit 243e41bb92
23 changed files with 12392 additions and 0 deletions

29
webpack.config.ts Normal file
View File

@@ -0,0 +1,29 @@
import { Configuration } from 'webpack';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import path from 'path';
const config: Configuration = {
mode: 'development',
entry: {
app: [
path.join(__dirname, 'src', 'index.tsx'),
],
},
output: {
path: path.join(__dirname, 'docs'),
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
plugins: [
new HtmlWebpackPlugin(),
],
module: {
rules: [{
test: /\.tsx?/,
use: ['babel-loader'],
}],
},
};
export default config;