<commit_before>var webpack = require('webpack');
var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var BrowserSyncPlugin = require('browser-sync-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var modRewrite = require('connect-modrewrite');
var CopyWebpackPlugin = require('copy-webpack-plugin');

// Path Config
var pathConfig = {
  context: path.join(__dirname, 'src'),
  distPath: path.join(__dirname, 'dist'),
  assetsPath: path.join(__dirname, 'dist/assets')
};

// varPlugin takes raw strings and inserts them, so you can put strings of JS if you want.
var varPlugin = new webpack.DefinePlugin({
  __DEV__: JSON.stringify(JSON.parse(process.env.BUILD_DEV || 'true')),
  __ENV__: JSON.stringify(process.env.ENV),
  __API_URL__: JSON.stringify('http://api.themoviedb.org/3'),
  __TMDB__: JSON.stringify(process.env.TMDB || '54588ad726d554d3eb0bd527c9875958'),
  __TMDB_IMG__: JSON.stringify('https://image.tmdb.org/t/p/'),
  __SOCKET__: process.env.SOCKET ? JSON.stringify(process.env.SOCKET) : false,
  __PROJECT_NAME__: JSON.stringify(process.env.projectName || 'serieDB')
});

var config = {
  context: pathConfig.context,
  devtool: 'source-map',
  entry: {
    bundle: './index.js'
  },
  output: {
    publicPath: '/',
    path: pathConfig.context,
    filename: '[name]-[hash:6].js'
  },
  plugins: [
    new ExtractTextPlugin('styles-[hash:6].css'),
    varPlugin,
    new HtmlWebpackPlugin({<commit_msg>Added resources is now working<commit_after>var webpack = require('webpack');
var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var BrowserSyncPlugin = require('browser-sync-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var modRewrite = require('connect-modrewrite');
var CopyWebpackPlugin = require('copy-webpack-plugin');

// Path Config
var pathConfig = {
  context: path.join(__dirname, 'src'),
  distPath: path.join(__dirname, 'dist'),
  assetsPath: path.join(__dirname, 'dist/assets')
};

// varPlugin takes raw strings and inserts them, so you can put strings of JS if you want.
var varPlugin = new webpack.DefinePlugin({
  __DEV__: JSON.stringify(JSON.parse(process.env.BUILD_DEV || 'true')),
  __ENV__: JSON.stringify(process.env.ENV),
  __API_URL__: JSON.stringify('https://api.themoviedb.org/3'),
  __TMDB__: JSON.stringify(process.env.TMDB || '54588ad726d554d3eb0bd527c9875958'),
  __TMDB_IMG__: JSON.stringify('https://image.tmdb.org/t/p/'),
  __SOCKET__: process.env.SOCKET ? JSON.stringify(process.env.SOCKET) : false,
  __PROJECT_NAME__: JSON.stringify(process.env.projectName || 'serieDB')
});

var config = {
  context: pathConfig.context,
  devtool: 'source-map',
  entry: {
    bundle: './index.js'
  },
  output: {
    publicPath: '/',
    path: pathConfig.context,
    filename: '[name]-[hash:6].js'
  },
  plugins: [
    new ExtractTextPlugin('styles-[hash:6].css'),
    varPlugin,
    new HtmlWebpackPlugin({
{'fraction_non_alphanumeric': 0.15740120562625587, 'fraction_numerical': 0.017414601473543203, 'mean_word_length': 4.914851485148515, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '4847777', 'n_tokens_mistral': 1031, 'n_tokens_neox': 992, 'n_words': 193}