<commit_before>const Dotenv = require('dotenv-webpack');
const webpack = require('webpack');
const { merge } = require('webpack-merge');
const autoprefixer = require('autoprefixer');
const common = require('./webpack.common.js');
const pkg = require('./package.json');
const path = require('path');

const dotEnv = new Dotenv({
  path: '.env.loc',
  safe: true,
  defaults: true,
});

module.exports = merge(common, {
  mode: 'development',
  snapshot: {
    managedPaths: [path.resolve(__dirname, '../node_modules')],
  },
  target: 'web',
  output: {
    publicPath: '/',
  },
  devServer: {
    open: true,
    allowedHosts: 'all',
    static: false,
    hot: true,
    host: 'localhost',
    port: 8000,
    proxy: {
      '/api': {
        target: 'http://localhost:8080',
        pathRewrite: {
          '^/api/v3' : '/api/v3',
          '^/api/v2' : '/api/v2',
          '^/api/v1' : '/api/v1',
          '^/api' : '',
        },
      },
    },
  },
  module: {
    rules: [
      {
        test: /\.(sass|scss)$/,
        use: [
          {
            loader: 'style-loader',
          },
          {
            loader: 'css-loader',
          },
          {
            loader: 'postcss-loader',
            options: {<commit_msg>chore: minor update webpack dev config<commit_after>const Dotenv = require('dotenv-webpack');
const webpack = require('webpack');
const { merge } = require('webpack-merge');
const autoprefixer = require('autoprefixer');
const common = require('./webpack.common.js');
const pkg = require('./package.json');
const path = require('path');

const dotEnv = new Dotenv({
  path: '.env.loc',
  safe: true,
  defaults: true,
});

module.exports = merge(common, {
  mode: 'development',
  snapshot: {
    managedPaths: [path.resolve(__dirname, '../node_modules')],
  },
  target: 'web',
  output: {
    publicPath: '/',
  },
  devServer: {
    open: true,
    allowedHosts: 'all',
    static: false,
    hot: true,
    port: 8000,
    proxy: {
      '/api': {
        target: 'http://localhost:8080',
        pathRewrite: {
          '^/api/v3' : '/api/v3',
          '^/api/v2' : '/api/v2',
          '^/api/v1' : '/api/v1',
          '^/api' : '',
        },
      },
    },
  },
  module: {
    rules: [
      {
        test: /\.(sass|scss)$/,
        use: [
          {
            loader: 'style-loader',
          },
          {
            loader: 'css-loader',
          },
          {
            loader: 'postcss-loader',
            options: {
{'fraction_non_alphanumeric': 0.1885048231511254, 'fraction_numerical': 0.011254019292604502, 'mean_word_length': 1.9213615023474178, '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': '7411398', 'n_tokens_mistral': 846, 'n_tokens_neox': 815, 'n_words': 163}