{"size": 1283, "ext": "js", "max_stars_repo_path": "AppReact/webpack.config.js", "max_stars_repo_name": "BrakingESX247/CyberStateRP", "max_stars_repo_stars_event_min_datetime": "2021-01-14T10:54:48.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-09T15:56:56.000Z", "max_issues_repo_path": "AppReact/webpack.config.js", "max_issues_repo_name": "BrakingESX247/CyberStateRP", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "AppReact/webpack.config.js", "max_forks_repo_name": "BrakingESX247/CyberStateRP", "max_forks_repo_forks_event_min_datetime": "2020-09-16T19:47:00.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-12T23:54:34.000Z"}
{"max_stars_count": 9, "max_issues_count": null, "max_forks_count": 18, "avg_line_length": 21.7457627119, "max_line_length": 81, "alphanum_fraction": 0.4263445051}
const path = require("path");
const webpack = require('webpack');

let NODE_ENV = 'production'
if (process.env.NODE_ENV) {
    NODE_ENV = process.env.NODE_ENV.replace(/^\s+|\s+$/g, "")
}

var config = {
    entry: `${__dirname}/src/index.js`,

    optimization: {
        minimize: false
    },

    node: {
        fs: "empty"
    },
     
    output: {
         path: __dirname,
         publicPath: "/",
         filename: '../resources/cyberstate/client/browser/js/build.js',
    },

    watch: NODE_ENV == 'production',
     
    devServer: {
         inline: true,
         port: 8080
    },

    resolve: {
        extensions: [".js", ".jsx"]
    },
     
    module: {
         rules: [
            {
                test: /\.jsx?$/,
                exclude: /node_modules/,
                loader: 'babel-loader',
                query: {
                    presets: ['es2015', 'stage-0', 'react']
                },
            },
            {
                test: /\.css$/,
                use: ['style-loader', 'css-loader'],
            },
            {
                test: /\.(jpe?g|png|ttf|eot|svg|mp3|woff(2)?)(\?[a-z0-9=&.]+)?$/,
                use: 'base64-inline-loader?limit=1000&name=[name].[ext]'
            }
         ]
    }
}

module.exports = config;