{"size": 701, "ext": "js", "max_stars_repo_path": "webpack.config.js", "max_stars_repo_name": "liyupi/hahalf", "max_stars_repo_stars_event_min_datetime": "2021-01-23T15:36:56.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-04T05:02:00.000Z", "max_issues_repo_path": "webpack.config.js", "max_issues_repo_name": "liyupi/hahalf", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "webpack.config.js", "max_forks_repo_name": "liyupi/hahalf", "max_forks_repo_forks_event_min_datetime": "2021-05-06T02:46:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-17T17:30:12.000Z"}
{"max_stars_count": 9, "max_issues_count": null, "max_forks_count": 2, "avg_line_length": 17.9743589744, "max_line_length": 49, "alphanum_fraction": 0.5392296719}
'use strict'

const path = require('path');
const merge = require('webpack-merge');

const common = {
  entry: ['@babel/polyfill', './src/App.js'],
  output: {
    filename: 'app.js',
    path: path.resolve(__dirname, 'app/js'),
    publicPath: '/app/js'
  },
  externals: {
    'react': 'React',
    'react-dom': 'ReactDOM'
  },
  module: {
    rules: [
      {
        test: /\.jsx?$/,
        include: [
          path.resolve(__dirname, 'src'),
          path.resolve(__dirname, 'node_modules')
        ],
        loader: 'babel-loader'
      }
    ]
  }
};

exports.dev = merge(common, {
  mode: 'development',
  devtool: 'source-map'
});

exports.prod = merge(common, {
  mode: 'production'
});
