<commit_before>const path = require('path');
const WebpackReactComponentNamePlugin = require('webpack-react-component-name');

module.exports = {
  entry: './src/components/App.tsx',
  devtool: 'inline-source-map',
  plugins: [new WebpackReactComponentNamePlugin()],
  module: {
    rules: [
      {
        test: /\.tsx?$/,
        use: 'ts-loader',
        exclude: /node_modules/,
      },
      {
        test: /\.svg$/,
        use: ['@svgr/webpack'],
      },
      {
        test: /\.css$/,
        use: ['style-loader', 'css-loader'],
      },
      {
        test: /\.woff(2)?$/,
        use: [
          {
            loader: 'url-loader',
            options: {
              limit: 10000,
              name: './font/[hash].[ext]',
              mimetype: 'application/font-woff',
            },
          },
        ],
      },
    ],
  },
  resolve: {
    extensions: ['.tsx', '.ts', '.js'],
  },
  output: {
    path: path.resolve(__dirname, '../../../../target/Wegas/wegas-lobby'),
    publicPath: './wegas-lobby/',
  },
  devServer: {<commit_msg>fixes #1797<commit_after>const path = require('path');
const WebpackReactComponentNamePlugin = require('webpack-react-component-name');

module.exports = {
  entry: './src/components/App.tsx',
  devtool: 'inline-source-map',
  plugins: [new WebpackReactComponentNamePlugin()],
  module: {
    rules: [
      {
        test: /\.tsx?$/,
        use: 'ts-loader',
        exclude: /node_modules/,
      },
      {
        test: /\.svg$/,
        use: ['@svgr/webpack'],
      },
      {
        test: /\.css$/,
        use: ['style-loader', 'css-loader'],
      },
      {
        test: /\.woff(2)?$/,
        type: 'asset/resource',
        // use: [
        //   {
        //     loader: 'url-loader',
        //     options: {
        //       limit: 10000,
        //       name: './font/[hash].[ext]',
        //       mimetype: 'application/font-woff',
        //     },
        //   },
        // ],
      },
    ],
  },
  resolve: {
    extensions: ['.tsx', '.ts', '.js'],
  },
  output: {
    path: path.resolve(__dirname, '../../../../target/Wegas/wegas-lobby'),
    publicPath: './wegas-lobby/',
  },
  devServer: {
{'fraction_non_alphanumeric': 0.20768526989935956, 'fraction_numerical': 0.007319304666056725, 'mean_word_length': 1.5283236994219653, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5896263', 'n_tokens_mistral': 742, 'n_tokens_neox': 723, 'n_words': 113}