<commit_before>process.env.NODE_ENV = '"development"'

const path = require('path')
const merge = require('webpack-merge')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const HtmlWebpackExcludeAssetsPlugin = require('html-webpack-exclude-assets-plugin')
const StyleExtHtmlWebpackPlugin = require('style-ext-html-webpack-plugin')

const common = require('./webpack.common')
const env = require('./../.env')

const distDir = path.resolve(__dirname, './../dist')
const publicPath = 'http://localhost:' + env.devServer.port + '/'

module.exports = merge(common, {
  devtool: 'inline-source-map',
  devServer: {
    port: env.devServer.port,
    hot: true,
    contentBase: distDir,
    publicPath: '/',
    historyApiFallback: true
  },
  output: {
    filename: '[name].js',
    publicPath: publicPath
  },
  plugins: [
    new ExtractTextPlugin('style.css'),    
    new HtmlWebpackPlugin({
      template: './src/index.hbs',
      filename: 'index.html',
      excludeAssets: [/style.css/],
      env: {
        dev: true,
        base: publicPath
      }
    }),
    new HtmlWebpackExcludeAssetsPlugin(),
    new StyleExtHtmlWebpackPlugin({
      position: 'body-bottom'<commit_msg>:bug: remove inline-style from development<commit_after>process.env.NODE_ENV = '"development"'

const path = require('path')
const merge = require('webpack-merge')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')

const common = require('./webpack.common')
const env = require('./../.env')

const distDir = path.resolve(__dirname, './../dist')
const publicPath = 'http://localhost:' + env.devServer.port + '/'

module.exports = merge(common, {
  devtool: 'inline-source-map',
  devServer: {
    port: env.devServer.port,
    hot: true,
    contentBase: distDir,
    publicPath: '/',
    historyApiFallback: true
  },
  output: {
    filename: '[name].js',
    publicPath: publicPath
  },
  plugins: [
    new ExtractTextPlugin('style.css'),    
    new HtmlWebpackPlugin({
      template: './src/index.hbs',
      filename: 'index.html',
      env: {
        dev: true,
        base: publicPath
      }
{'fraction_non_alphanumeric': 0.15315718763994626, 'fraction_numerical': 0.0, 'mean_word_length': 3.494969818913481, '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': '3589110', 'n_tokens_mistral': 690, 'n_tokens_neox': 680, 'n_words': 139}