<commit_before>import minimist from 'minimist';
import path from "path";
import webpack from "webpack";

const argv = minimist(process.argv.slice(2));

const DEBUG = !argv.release;

module.exports = {
  cache: DEBUG,
  debug: DEBUG,
  devtool: DEBUG ? 'source-map' : false,
  hotComponents: true,
  entry: {
    app: [
      "./src/app"
    ],
    styles: [
      'webpack-dev-server/client?http://localhost:3000',
      'webpack/hot/dev-server',
      './src/styles'
    ]
  },
  output: {
    path: path.join(__dirname, "dist/assets"),
    publicPath: "/assets/",
    filename: "[name].js",
    chunkFilename: "[chunkhash].js"
  },
  resolve: {
    root: [path.join(__dirname, "bower_components")]
  },
  module: {
    preLoaders: [
      {test: /\.js$/, loader: "eslint-loader", exclude: /node_modules/}
    ],

    loaders: [<commit_msg>chore(web): disable hot module reloading if releasing<commit_after>import minimist from 'minimist';
import path from "path";
import webpack from "webpack";

const argv = minimist(process.argv.slice(2));

const DEBUG = !argv.release;

module.exports = {
  cache: DEBUG,
  debug: DEBUG,
  devtool: DEBUG ? 'source-map' : false,
  hotComponents: DEBUG,
  entry: {
    app: [
      "./src/app"
    ],
    styles: DEBUG ? [
      'webpack-dev-server/client?http://localhost:3000',
      'webpack/hot/dev-server',
      './src/styles'
    ] : ['./src/styles']
  },
  output: {
    path: path.join(__dirname, "dist/assets"),
    publicPath: "/assets/",
    filename: "[name].js",
    chunkFilename: "[chunkhash].js"
  },
  resolve: {
    root: [path.join(__dirname, "bower_components")]
  },
  module: {
    preLoaders: [
      {test: /\.js$/, loader: "eslint-loader", exclude: /node_modules/}
    ],

    loaders: [
{'fraction_non_alphanumeric': 0.176, 'fraction_numerical': 0.005714285714285714, 'mean_word_length': 2.9436936936936937, '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': '1663542', 'n_tokens_mistral': 609, 'n_tokens_neox': 602, 'n_words': 126}