<commit_before>/* eslint-disable no-var, prefer-template, object-shorthand */

var path = require('path')
var webpack = require('webpack')
var Config = require('webpack-config').default
var DirectoryNamedWebpackPlugin = require('../plugins/directory-named')

module.exports = new Config().merge({
  cache: true,
  entry: {
    portrait: path.resolve('src/index.js'),
    'docs/index': [
      'bootstrap-sass/assets/javascripts/bootstrap',
      'font-awesome/css/font-awesome.css',
      path.resolve('docs/entry.js'),
      path.resolve('docs/theme.scss'),
    ],
  },
  output: {
    path: path.resolve('lib'),
    filename: '[name].js',
    chunkFilename: 'docs/chunks/[id].[name].js',
    libraryTarget: 'umd',
    umdNamedDefine: true,
    pathinfo: true,
  },
  module: {
    loaders: [
      {
        test: require.resolve('bootstrap-sass/assets/javascripts/bootstrap'),
        loader: 'imports-loader?jQuery=jquery,$=jquery',
      },
      {
        test: /\.jsx?$/,
        loader: 'babel?cacheDirectory=true',
        exclude: /node_modules/,
      },
      {
        test: /\.(eot|ttf|woff|woff2|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
        loader: 'file-loader',
      },
      {
        test: /\.json$/,
        loader: 'json',
      },
      {
        test: /\.yml/,
        loaders: ['json', 'yaml'],
        exclude: /node_modules/,
      },
    ],
  },
  resolve: {
    root: path.resolve('src'),
    extensions: ['', '.js', '.jsx'],
  },
  resolveLoader: {
    fallback: [
      path.resolve('webpack/loaders'),
      path.resolve('node_modules'),
    ],<commit_msg>Moves compiled font awesome files to the docs folder<commit_after>/* eslint-disable no-var, prefer-template, object-shorthand */

var path = require('path')
var webpack = require('webpack')
var Config = require('webpack-config').default
var DirectoryNamedWebpackPlugin = require('../plugins/directory-named')

module.exports = new Config().merge({
  cache: true,
  entry: {
    portrait: path.resolve('src/index.js'),
    'docs/index': [
      'bootstrap-sass/assets/javascripts/bootstrap',
      'font-awesome/css/font-awesome.css',
      path.resolve('docs/entry.js'),
      path.resolve('docs/theme.scss'),
    ],
  },
  output: {
    path: path.resolve('lib'),
    filename: '[name].js',
    chunkFilename: 'docs/chunks/[id].[name].js',
    libraryTarget: 'umd',
    umdNamedDefine: true,
    pathinfo: true,
  },
  module: {
    loaders: [
      {
        test: require.resolve('bootstrap-sass/assets/javascripts/bootstrap'),
        loader: 'imports-loader?jQuery=jquery,$=jquery',
      },
      {
        test: /\.jsx?$/,
        loader: 'babel?cacheDirectory=true',
        exclude: /node_modules/,
      },
      {
        test: /\.(eot|ttf|woff|woff2|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
        loader: 'file-loader?&name=docs/fonts/[name].[ext]',
      },
      {
        test: /\.json$/,
        loader: 'json',
      },
      {
        test: /\.yml/,
        loaders: ['json', 'yaml'],
        exclude: /node_modules/,
      },
    ],
  },
  resolve: {
    root: path.resolve('src'),
    extensions: ['', '.js', '.jsx'],
  },
  resolveLoader: {
    fallback: [
      path.resolve('webpack/loaders'),
      path.resolve('node_modules'),
    ],
{'fraction_non_alphanumeric': 0.1951219512195122, 'fraction_numerical': 0.0043223217042297, 'mean_word_length': 2.4322033898305087, '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': '5874881', 'n_tokens_mistral': 1100, 'n_tokens_neox': 1075, 'n_words': 168}