<commit_before>const { join, resolve } = require('path')
const { Config } = require('webpack-config')
const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin')
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin')
const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin')
const SimpleProgressWebpackPlugin = require('simple-progress-webpack-plugin')

const PUBLIC_PATH = '/'
const PUBLIC_URL = ''

const paths = require('../paths')
const loaders = require('../loaders')
const loadConfig = require('../../utils/load-config')

const config = new Config().extend(resolve(__dirname, './common.js')).merge({
  devtool: 'cheap-module-eval-source-map',
  entry: {
    main: [
      require.resolve('react-hot-loader/patch'),
      require.resolve('react-dev-utils/webpackHotDevClient'),
      require.resolve('babel-polyfill'),
      join(paths.app.src.root, 'main'),
    ],
  },
  output: {
    pathinfo: true,
    path: paths.app.build,
    publicPath: PUBLIC_PATH,
    filename: 'static/js/[name].js',
    sourceMapFilename: 'static/js/[name].js.map',
    devtoolModuleFilenameTemplate: info =>
      resolve(info.absoluteResourcePath).replace(/\\/g, '/'),
  },
  module: {
    rules: [{
      test: /\.css$/,
      include: [paths.app.assets.stylesheets, paths.app.src.root],
      exclude: /node_modules/,
      use: [loaders.style, loaders.css, loaders.postcss],
    }],
  },
  performance: {
    hints: false,
  },
  plugins: [
    new SimpleProgressWebpackPlugin({
      format: 'compact',
    }),
    new InterpolateHtmlPlugin(Object.assign({}, { PUBLIC_URL }, loadConfig('html'))),
    new HtmlWebpackPlugin({
      inject: true,
      template: paths.app.assets.htmlFile,
    }),
    new webpack.HotModuleReplacementPlugin(),
    new WatchMissingNodeModulesPlugin(paths.app.nodeModules),
    new CaseSensitivePathsPlugin(),
  ],
})

module.exports = config.merge(loadConfig('webpack', config))<commit_msg>fix(packages/appson-cli): remove progress plugin from development<commit_after>const { join, resolve } = require('path')
const { Config } = require('webpack-config')
const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin')
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin')
const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin')
const SimpleProgressWebpackPlugin = require('simple-progress-webpack-plugin')

const PUBLIC_PATH = '/'
const PUBLIC_URL = ''

const paths = require('../paths')
const loaders = require('../loaders')
const loadConfig = require('../../utils/load-config')

const config = new Config().extend(resolve(__dirname, './common.js')).merge({
  devtool: 'cheap-module-eval-source-map',
  entry: {
    main: [
      require.resolve('react-hot-loader/patch'),
      require.resolve('react-dev-utils/webpackHotDevClient'),
      require.resolve('babel-polyfill'),
      join(paths.app.src.root, 'main'),
    ],
  },
  output: {
    pathinfo: true,
    path: paths.app.build,
    publicPath: PUBLIC_PATH,
    filename: 'static/js/[name].js',
    sourceMapFilename: 'static/js/[name].js.map',
    devtoolModuleFilenameTemplate: info =>
      resolve(info.absoluteResourcePath).replace(/\\/g, '/'),
  },
  module: {
    rules: [{
      test: /\.css$/,
      include: [paths.app.assets.stylesheets, paths.app.src.root],
      exclude: /node_modules/,
      use: [loaders.style, loaders.css, loaders.postcss],
    }],
  },
  performance: {
    hints: false,
  },
  plugins: [
    new InterpolateHtmlPlugin(Object.assign({}, { PUBLIC_URL }, loadConfig('html'))),
    new HtmlWebpackPlugin({
      inject: true,
      template: paths.app.assets.htmlFile,
    }),
    new webpack.HotModuleReplacementPlugin(),
    new WatchMissingNodeModulesPlugin(paths.app.nodeModules),
    new CaseSensitivePathsPlugin(),
  ],
})

module.exports = config.merge(loadConfig('webpack', config))
{'fraction_non_alphanumeric': 0.15707058540110816, 'fraction_numerical': 0.0, 'mean_word_length': 4.082007343941249, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5444530', 'n_tokens_mistral': 1272, 'n_tokens_neox': 1252, 'n_words': 212}