<commit_before>// Note: You must restart bin/webpack-watcher for changes to take effect

const merge = require('webpack-merge')
const common = require('./common.js')

const { resolve } = require('path')
const { devServer, publicPath, paths } = require('./configuration.js')

module.exports = merge(common, {
  devtool: 'sourcemap',

  stats: {
    errorDetails: true
  },

  output: {
    pathinfo: true
  },

  devServer: {
    host: devServer.host,
    port: devServer.port,
    contentBase: resolve(paths.output, paths.entry),
    publicPath
  }
})<commit_msg>Use webpack dev server as proxy to rails<commit_after>// Note: You must restart bin/webpack-watcher for changes to take effect

const merge = require('webpack-merge')
const common = require('./common.js')

const { resolve } = require('path')
const { devServer, publicPath, paths } = require('./configuration.js')

module.exports = merge(common, {
  devtool: 'sourcemap',

  stats: {
    errorDetails: true
  },

  output: {
    pathinfo: true
  },

  devServer: {
    host: devServer.host,
    port: devServer.port,
    contentBase: resolve(paths.output, paths.entry),
    proxy: {'/': 'http://localhost:9000'},
    publicPath
  }
})
{'fraction_non_alphanumeric': 0.14214046822742474, 'fraction_numerical': 0.0033444816053511705, 'mean_word_length': 3.63953488372093, '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': '4125119', 'n_tokens_mistral': 375, 'n_tokens_neox': 365, 'n_words': 97}