<commit_before>var webpack = require('webpack');
var autoprefixer = require('autoprefixer');
var path = require('path');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var loaders = require('./webpack.loaders');

var UI = path.join(__dirname, "..", "src", "UI")
var app = path.join(__dirname, "..", "app")
var node_modules = path.join(app, "node_modules")

module.exports = {
    // target: "electron",
    entry: {
        app: path.join(UI, 'index.jsx')
    },
    output: {
        path: app,
        filename: '[name].bundle.js',
        publicPath: require('../config').server.url
    },
    resolve: {
        extensions: ['.js', '.jsx', '.css', '.scss', '.sass'],
        alias: require("./webpack.alias"),
        modules: ['node_modules', node_modules, UI]
    },
    module: { loaders: loaders },
    plugins: [
        new webpack.optimize.UglifyJsPlugin({
            warnings: false
        }),
        new webpack.ProvidePlugin({
            $: "jquery",
            jQuery: "jquery",
            "window.jQuery": "jquery"
        }),
        new webpack.DefinePlugin({
            'process.env': {
                'NODE_ENV': JSON.stringify('production')
            }
        }),
        new HtmlWebpackPlugin({
            template: path.join(UI, 'index.html')<commit_msg>build: update webpack minifiyjs args<commit_after>var webpack = require('webpack');
var autoprefixer = require('autoprefixer');
var path = require('path');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var loaders = require('./webpack.loaders');

var UI = path.join(__dirname, "..", "src", "UI")
var app = path.join(__dirname, "..", "app")
var node_modules = path.join(app, "node_modules")

module.exports = {
    // target: "electron",
    entry: {
        app: path.join(UI, 'index.jsx')
    },
    output: {
        path: app,
        filename: '[name].bundle.js',
        publicPath: require('../config').server.url
    },
    resolve: {
        extensions: ['.js', '.jsx', '.css', '.scss', '.sass'],
        alias: require("./webpack.alias"),
        modules: ['node_modules', node_modules, UI]
    },
    module: { loaders: loaders },
    plugins: [
        new webpack.optimize.UglifyJsPlugin({
            warnings: false,
            sourceMap: true,
            compress: {
              screw_ie8: true, // React doesn't support IE8
              warnings: isVerbose,
              unused: true,
              dead_code: true,
            },
            mangle: {
              screw_ie8: true,
            },
            output: {
              comments: false,
              screw_ie8: true,
            },
          }),
        ]),
        new webpack.ProvidePlugin({
            $: "jquery",
            jQuery: "jquery",
            "window.jQuery": "jquery"
        }),
        new webpack.DefinePlugin({
            'process.env': {
                'NODE_ENV': JSON.stringify('production')
            }
        }),
        new HtmlWebpackPlugin({
            template: path.join(UI, 'index.html')
{'fraction_non_alphanumeric': 0.16142904399603045, 'fraction_numerical': 0.0013231888852133643, 'mean_word_length': 1.9473684210526316, 'pattern_counts': {'":': 2, '<': 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': '3493460', 'n_tokens_mistral': 895, 'n_tokens_neox': 891, 'n_words': 186}