<commit_before>var path = require('path');
var webpack = require('webpack');
var env = process.env.NODE_ENV;

var PATHS = {
	static: path.resolve(__dirname, 'src/encoded/static'),
	build: path.resolve(__dirname, 'src/encoded/static/build'),
};

var plugins = [];
// don't include momentjs locales (large)
plugins.push(new webpack.IgnorePlugin(/^\.\/locale$/, [/moment$/]));
var chunkFilename = '[name].js';
var sourceMapType = null;

if (env === 'production') {
	// tell react to use production build
	// uglify code for production
	plugins.push(new webpack.optimize.UglifyJsPlugin({minimize: true}));
	// add chunkhash to chunk names for production only (it's slower)
	chunkFilename = '[name].[chunkhash].js';
	sourceMapType = 'source-map';
}

var preLoaders = [
	// Strip @jsx pragma in react-forms, which makes babel abort
	{
		test: /\.js$/,
		loader: 'string-replace',
		query: {
			search: '@jsx',
			replace: 'jsx',
		}
	}<commit_msg>trying prod build for reat again<commit_after>var path = require('path');
var webpack = require('webpack');
var env = process.env.NODE_ENV;

var PATHS = {
	static: path.resolve(__dirname, 'src/encoded/static'),
	build: path.resolve(__dirname, 'src/encoded/static/build'),
};

var plugins = [];
// don't include momentjs locales (large)
plugins.push(new webpack.IgnorePlugin(/^\.\/locale$/, [/moment$/]));
var chunkFilename = '[name].js';
var sourceMapType = null;

if (env === 'production') {
	// tell react to use production build
	plugins.push(new webpack.DefinePlugin({
      'process.env': {
        'NODE_ENV': '"production"'
      }
   }));
	// uglify code for production
	plugins.push(new webpack.optimize.UglifyJsPlugin({minimize: true}));
	// add chunkhash to chunk names for production only (it's slower)
	chunkFilename = '[name].[chunkhash].js';
	sourceMapType = 'source-map';
}

var preLoaders = [
	// Strip @jsx pragma in react-forms, which makes babel abort
	{
		test: /\.js$/,
		loader: 'string-replace',
		query: {
			search: '@jsx',
			replace: 'jsx',
		}
	}
{'fraction_non_alphanumeric': 0.16964285714285715, 'fraction_numerical': 0.0, 'mean_word_length': 4.0551378446115285, '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': '871364', 'n_tokens_mistral': 701, 'n_tokens_neox': 666, 'n_words': 176}