text: const path = require('path');
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
  
  module.exports = {
    entry: './app/index.ts',
    devtool: 'inline-source-map',
    module: {
      rules: [
        {
          test: /\.tsx?$/,
          use: 'ts-loader',
          exclude: /node_modules/
        },
        {
          test: /\.scss$/,
          use: [
              {
                  loader: MiniCssExtractPlugin.loader,
              },
              'css-loader',
              'sass-loader',
          ],
        },
        {
          test: /\.css$/,
          use: [
              {
                  loader: MiniCssExtractPlugin.loader,
              },
              'css-loader',
          ],
        },
        {
          test: /\.woff2?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
          use: 'url-loader?limit=10000',
        },
        {
          test: /\.(ttf|eot|svg)(\?[\s\S]+)?$/,
          use: 'file-loader',
        },
        {
          test: /\.(jpe?g|png|gif|svg)$/i,
          use: [
            'file-loader?name=images/[name].[ext]',
            'image-webpack-loader?bypassOnDebug'
          ]
        }
      ]
    },
    plugins: [
      new MiniCssExtractPlugin({
          filename: 'app.css',
      }),
    ],
    resolve: {
      extensions: [ '.tsx', '.ts', '.js' ]
    },
    output: {
      filename: 'app.js',
      path: path.resolve(__dirname, 'static')
    }
  };