text: const HtmlWebpackPlugin = require('html-webpack-plugin');
  const path = require('path');
  
  module.exports = {
    mode: 'development',
    entry: './src/renderer.tsx',
    target: 'electron-renderer',
    // devtool: 'inline-source-map',
    devServer: {
      // contentBase: path.join(__dirname, 'build/renderer.js'),
      // publicPath: '/',
      compress: true,
      port: 9000
    },
    resolve: {
      alias: {
        ['@']: path.resolve(__dirname, 'src')
      },
      extensions: ['.tsx', '.ts', '.js'],
    },
    module: {
      rules: [
        {
          test: /\.ts(x?)$/,
          include: /src/,
          use: [{ loader: 'ts-loader' }]
        },
        {
          test: /\.s[ac]ss$/i,
          use: [
            'style-loader',
            'css-loader',
            'sass-loader',
          ],
        }
      ]
    },
    output: {
      path: path.resolve(__dirname, 'build'),
      filename: 'renderer.js'
    },
    plugins: [
      new HtmlWebpackPlugin({
        template: './src/index.html'
      })
    ]
  };
  