<commit_before>webpack = require 'webpack'

webpackClientConfig = require __includes + 'webpack-prod-client-config'
webpackServerConfig = require __includes + 'webpack-prod-server-config'

module.exports = do ->
	webpack webpackServerConfig, (err, stats) ->
		throw (console.error)('webpack', err) if err
		console.info '[webpack-server]', stats.toString colors: true

	webpack webpackClientConfig, (err, stats) ->
		throw (console.error)('webpack', err) if err
		console.info '[webpack-client]', stats.toString colors: true<commit_msg>Brought in compiler-prod changes from PulsenGame Website<commit_after>webpack = require 'webpack'

webpackServerConfig = require __includes + 'webpack-prod-server-config'
webpackClientConfig = require __includes + 'webpack-prod-client-config'

onBuild = (taskName, err, stats) ->
	throw (console.error)('webpack', err) if err
	console.info taskName, stats.toString colors: true

module.exports = (runServer) ->
	if runServer # We're running a server so watch files for changes
		webpack webpackServerConfig
			.watch 100, onBuild.bind null, '[webpack-server]'
		webpack webpackClientConfig
			.watch 100, onBuild.bind null, '[webpack-server]'
	else
		webpack webpackServerConfig, onBuild.bind null, '[webpack-server]'
		webpack webpackClientConfig, onBuild.bind null, '[webpack-client]'
{'fraction_non_alphanumeric': 0.11497730711043873, 'fraction_numerical': 0.0045385779122541605, 'mean_word_length': 5.517241379310345, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '2735697', 'n_tokens_mistral': 397, 'n_tokens_neox': 373, 'n_words': 109}