<commit_before>const path = require('path');
const getRepositoryName = require('git-repo-name');
const webpack = require('webpack');

const HtmlWebpackPlugin = require('html-webpack-plugin');
const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const OpenBrowserPlugin = require('open-browser-webpack-plugin');

const production = process.env.NODE_ENV === 'production';
const development = process.env.NODE_ENV === 'development';
const pagesBuild = process.env.BUILD === 'pages';
const repositoryName = pagesBuild && getRepositoryName.sync();

const sassResourcesLoader = {
  loader: 'sass-resources-loader',
  options: {
    resources: [
      path.join(__dirname, './src', './styles/variables.scss'),
      path.join(__dirname, './src', './styles/mixins.scss'),
    ],
  },
};

const stylesLoaders = [
  'css-loader',
  'postcss-loader',
  'sass-loader',
  sassResourcesLoader,
];

const loaders = [
  {
    test: /\.(js|jsx)$/,
    loader: 'babel-loader',
    include: path.join(__dirname, 'src'),
    exclude: /node_modules/,
  },

  {
    test: /\.(css|scss)$/,
    loader: development
      ? ['style-loader', ...stylesLoaders]
      : ExtractTextPlugin.extract({ fallback: 'style-loader', use: stylesLoaders }),
  },

  {
    test: /\.(svg|png|jpg|gif|woff|woff2|otf|ttf|eot)$/,
    loader: 'file-loader',
  },
];

// Plugins used in all builds
const pluginsBase = [
  new HtmlWebpackPlugin({
    title: 'React Github Pages Boilerplate',
    template: 'template.ejs',
  }),

  new FaviconsWebpackPlugin({
    logo: './favicon.png',
    background: '#ffeeee',
    icons: {
      android: false,
      appleIcon: false,
      appleStartup: false,
      coast: false,
      favicons: true,
      firefox: false,<commit_msg>remove title setting from webpack config<commit_after>const path = require('path');
const getRepositoryName = require('git-repo-name');
const webpack = require('webpack');

const HtmlWebpackPlugin = require('html-webpack-plugin');
const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const OpenBrowserPlugin = require('open-browser-webpack-plugin');

const production = process.env.NODE_ENV === 'production';
const development = process.env.NODE_ENV === 'development';
const pagesBuild = process.env.BUILD === 'pages';
const repositoryName = pagesBuild && getRepositoryName.sync();

const sassResourcesLoader = {
  loader: 'sass-resources-loader',
  options: {
    resources: [
      path.join(__dirname, './src', './styles/variables.scss'),
      path.join(__dirname, './src', './styles/mixins.scss'),
    ],
  },
};

const stylesLoaders = [
  'css-loader',
  'postcss-loader',
  'sass-loader',
  sassResourcesLoader,
];

const loaders = [
  {
    test: /\.(js|jsx)$/,
    loader: 'babel-loader',
    include: path.join(__dirname, 'src'),
    exclude: /node_modules/,
  },

  {
    test: /\.(css|scss)$/,
    loader: development
      ? ['style-loader', ...stylesLoaders]
      : ExtractTextPlugin.extract({ fallback: 'style-loader', use: stylesLoaders }),
  },

  {
    test: /\.(svg|png|jpg|gif|woff|woff2|otf|ttf|eot)$/,
    loader: 'file-loader',
  },
];

// Plugins used in all builds
const pluginsBase = [
  new HtmlWebpackPlugin({
    template: 'template.ejs',
  }),

  new FaviconsWebpackPlugin({
    logo: './favicon.png',
    background: '#ffeeee',
    icons: {
      android: false,
      appleIcon: false,
      appleStartup: false,
      coast: false,
      favicons: true,
      firefox: false,
{'fraction_non_alphanumeric': 0.1637239165329053, 'fraction_numerical': 0.0005350454788657035, 'mean_word_length': 3.7997432605905006, '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': '761790', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1174, 'n_words': 237}