<commit_before>/* eslint-env node */

const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const path = require("path");

module.exports = {
  mode: "production",
  entry: {
    main: path.resolve(__dirname, "dist/index.js"),
  },
  output: {
    filename: "built/[name].js",
    path: path.resolve(__dirname, "../build/resources/main/static"),
  },
  plugins: [new MiniCssExtractPlugin({ filename: "built/[name].css" })],
  optimization: {
    noEmitOnErrors: true,
  },
  module: {
    rules: [
      { test: /\.js$/, exclude: /node_modules/, loader: "babel-loader" },
      {
        test: /\.css$/,
        use: [
          {
            loader: MiniCssExtractPlugin.loader,
            options: { publicPath: "../" },
          },
          "css-loader",
        ],
      },
      {
        test: /\.scss$/,
        use: [
          {
            loader: MiniCssExtractPlugin.loader,
            options: { publicPath: "../" },
          },
          "css-loader",
          "sass-loader",
        ],
      },
      {
        test: /\.(svg|png|gif|ico)$/,
        loader: "url-loader?limit=10000&name=img/[name].[ext]",
      },
    ],
  },
};<commit_msg>repair webpack<commit_after>/* eslint-env node */

const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const path = require("path");

module.exports = {
  mode: "production",
  entry: {
    main: path.resolve(__dirname, "dist/index.js"),
  },
  output: {
    filename: "built/[name].js",
    path: path.resolve(__dirname, "../build/resources/main/static"),
  },
  plugins: [new MiniCssExtractPlugin({ filename: "built/[name].css" })],
  optimization: {
    noEmitOnErrors: true,
  },
  module: {
    rules: [
      { test: /\.js$/, exclude: /node_modules/, loader: "babel-loader" },
      {
        test: /\.css$/,
        use: [
          {
            loader: MiniCssExtractPlugin.loader,
            options: { publicPath: "../" },
          },
          "css-loader",
        ],
      },
      {
        test: /\.scss$/,
        use: [
          {
            loader: MiniCssExtractPlugin.loader,
            options: { publicPath: "../" },
          },
          "css-loader",
          "sass-loader",
        ],
      },
      {
        test: /\.(svg|png|gif|ico)$/,
        loader: "url-loader",
        options: { limit: 10000, name: "img/[name].[ext]" },
      },
    ],
  },
};
{'fraction_non_alphanumeric': 0.1884485666104553, 'fraction_numerical': 0.0042158516020236085, 'mean_word_length': 1.7625145518044238, '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': '2197293', 'n_tokens_mistral': 783, 'n_tokens_neox': 764, 'n_words': 124}