<commit_before>const CopyWebpackPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlWebpackIncludeAssetsPlugin = require('html-webpack-include-assets-plugin');
const webpack = require('webpack');
const pkg = require('./package.json');

const publicFolder = `${__dirname}/public`;
const distFolder = `${publicFolder}/dist`;

module.exports = {
	entry:  [`${publicFolder}/src/main.js`],
	output: {
		libraryTarget: 'var',
		library:       'LandsWar',
		path:          distFolder,
		filename:      'landswar-game.js',
	},
	module: {
		rules: [
			{
				test: /\.png$/,
				use:  [
					{
						loader: 'base64-image-loader',
					},
				],
			},
			{
				test:    /\.js$/,
				exclude: /(node_modules)/,
				use:     [
					{
						loader: 'babel-loader',
					},
				],
			},
		],
	},
	externals: {
		phaser: 'Phaser',
		io:     'io',
	},
	plugins: [
		new webpack.EnvironmentPlugin({
			TOKEN_PLAYER:   null,
			SHORTID_ROOM:   null,
			API_URL:        'http://127.0.0.1:3000',
			WEBSOCKETS_URL: 'http://127.0.0.1:3000',
		}),
		new webpack.DefinePlugin({
			VERSION: JSON.stringify(pkg.version),
		}),
		new HtmlWebpackPlugin({
			title: 'LandsWar - game',
		}),
		new HtmlWebpackIncludeAssetsPlugin({
			assets: [
				'styles.css',
				'phaser.min.js',
				'socket.io.min.js',
			],
			append: false,
		}),
		new webpack.optimize.UglifyJsPlugin({
			compress: {<commit_msg>fix server url<commit_after>const CopyWebpackPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlWebpackIncludeAssetsPlugin = require('html-webpack-include-assets-plugin');
const webpack = require('webpack');
const pkg = require('./package.json');

const publicFolder = `${__dirname}/public`;
const distFolder = `${publicFolder}/dist`;

module.exports = {
	entry:  [`${publicFolder}/src/main.js`],
	output: {
		libraryTarget: 'var',
		library:       'LandsWar',
		path:          distFolder,
		filename:      'landswar-game.js',
	},
	module: {
		rules: [
			{
				test: /\.png$/,
				use:  [
					{
						loader: 'base64-image-loader',
					},
				],
			},
			{
				test:    /\.js$/,
				exclude: /(node_modules)/,
				use:     [
					{
						loader: 'babel-loader',
					},
				],
			},
		],
	},
	externals: {
		phaser: 'Phaser',
		io:     'io',
	},
	plugins: [
		new webpack.EnvironmentPlugin({
			TOKEN_PLAYER:   null,
			SHORTID_ROOM:   null,
			API_URL:        'http://0.0.0.0:3000',
			WEBSOCKETS_URL: 'http://0.0.0.0:3000',
		}),
		new webpack.DefinePlugin({
			VERSION: JSON.stringify(pkg.version),
		}),
		new HtmlWebpackPlugin({
			title: 'LandsWar - game',
		}),
		new HtmlWebpackIncludeAssetsPlugin({
			assets: [
				'styles.css',
				'phaser.min.js',
				'socket.io.min.js',
			],
			append: false,
		}),
		new webpack.optimize.UglifyJsPlugin({
			compress: {
{'fraction_non_alphanumeric': 0.1775602936036351, 'fraction_numerical': 0.013981125480601188, 'mean_word_length': 2.7807133421400265, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '5786523', 'n_tokens_mistral': 1273, 'n_tokens_neox': 1044, 'n_words': 168}