const HtmlWebpackPlugin = require('html-webpack-plugin'); const path = require('path'); module.exports = { entry: './src/index.ts', devtool: 'inline-source-map', module: { rules: [ { test: /\.tsx?$/, use: 'ts-loader', exclude: /node_modules/, }, { test: /\.css$/, use: ['style-loader', 'css-loader'], }, { test: /\.(woff|woff2|eot|ttf|otf)$/, use: 'file-loader', }, ], }, resolve: { extensions: [ '.tsx', '.ts', '.js' ], }, output: { filename: 'main.js', path: path.resolve(__dirname, 'dist'), }, plugins: [new HtmlWebpackPlugin()], };