{"size": 808, "ext": "js", "max_stars_repo_path": "Frontend/webpack.config.js", "max_stars_repo_name": "goldenJerry/Django-Project", "max_stars_repo_stars_event_min_datetime": "2019-12-27T16:31:18.000Z", "max_stars_repo_stars_event_max_datetime": "2019-12-27T16:31:18.000Z", "max_issues_repo_path": "Frontend/webpack.config.js", "max_issues_repo_name": "goldenJerry/Django-Project", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Frontend/webpack.config.js", "max_forks_repo_name": "goldenJerry/Django-Project", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.9555555556, "max_line_length": 65, "alphanum_fraction": 0.5754950495}
const webpack = require('webpack');
const path = require('path');

const APP_DIR = path.resolve(__dirname, 'src');
const BUILD_DIR = path.resolve(__dirname, 'dist/js');

const bool = true;

const config = {
	entry: `${APP_DIR}/index.js`,
	output: {
		path: BUILD_DIR,
		publicPath: '/js',
		filename: 'bundle.min.js'
	},
	module: {
		loaders: [
			{
				test: /\.jsx?/,
				include: APP_DIR,
				loader: 'babel-loader',
				exclude: '/node_modules'
			},
			{
				test: /\.css$/,
				loaders: [
					'style-loader', 'css-loader'
				]
			},
			{
        test: /\.(jpe?g|png|gif|svg)$/i,
        include: APP_DIR,
        loader: 'url-loader?limit=30000&name=images/[name].[ext]'
      }
		]
	},
	devServer: {
		contentBase: './dist',
		port: 8080,
		historyApiFallback: bool
	},
};

module.exports = config;
