text: const path = require('path');
  
  const {CleanWebpackPlugin} = require('clean-webpack-plugin');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  const TsConfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
  
  module.exports = {
    entry: {
      app: './src/app'
    },
  
    output: {
      path: path.resolve(__dirname, 'dist'),
      filename: '[name].js',
    },
  
    resolve: {
      extensions: ['.ts', '.js'],
      plugins: [
        new TsConfigPathsPlugin()
      ]
    },
  
    module: {
      rules: [
        {
          test: /\.ts$/,
          use: 'ts-loader',
          exclude: /node_modules/
        }
      ]
    },
  
    watchOptions: {
      ignored: /node_modules/
    },
  
    plugins: [
      new CleanWebpackPlugin(),
      new HtmlWebpackPlugin({
        chunks: ['app'],
        template: path.resolve(__dirname, './src/index.html')
      })
    ]
  };
  