text: const Path = require('path');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
    entry: {
      app: Path.resolve(__dirname, '../src/scripts/index.ts'),
    },
    output: {
      path: Path.join(__dirname, '../../src/render/cytoscape/base'),
      filename: 'js/[name].js',
    },
    optimization: {
      minimize: false
    },
    plugins: [
      //new CopyWebpackPlugin({ patterns: [{ from: Path.resolve(__dirname, '../public'), to: 'public' }] }),
      new HtmlWebpackPlugin({
        template: Path.resolve(__dirname, '../src/index.html'),
      }),
    ],
    resolve: {
      extensions: ['.tsx', '.ts', '.js'],
      alias: {
        '~': Path.resolve(__dirname, '../src'),
      },
    },
    module: {
      rules: [
        {
          test: /\.mjs$/,
          include: /node_modules/,
          type: 'javascript/auto',
        },
        {
          test: /\.tsx?$/,
          use: 'ts-loader',
          exclude: /node_modules/,
        },
        {
          test: /\.(ico|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)(\?.*)?$/,
          use: {
            loader: 'file-loader',
            options: {
              name: '[path][name].[ext]',
            },
          },
        },
      ],
    },
  };
  