{"size": 661, "ext": "js", "max_stars_repo_path": "build/webpack.dev.js", "max_stars_repo_name": "luoyeshu0507/react-startup", "max_stars_repo_stars_event_min_datetime": "2018-10-15T11:30:26.000Z", "max_stars_repo_stars_event_max_datetime": "2018-10-15T11:30:26.000Z", "max_issues_repo_path": "build/webpack.dev.js", "max_issues_repo_name": "luoyeshu0507/react-startup", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "build/webpack.dev.js", "max_forks_repo_name": "luoyeshu0507/react-startup", "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": 27.5416666667, "max_line_length": 72, "alphanum_fraction": 0.6822995461}
const merge = require('webpack-merge')
const webpack = require('webpack')
const webpackConfig = require('./webpack.config')
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
const { plugins } = require('./webpack')

module.exports = merge.smart(webpackConfig, {
  entry: {
    app: [
      'webpack-hot-middleware/client?path=/__webpack_hmr&timeout=20000',
      'react-hot-loader/patch',
      './src/index.jsx'
    ]
  },
  output: {
    filename: 'app/[name].js'
  },
  plugins: [
    new webpack.HotModuleReplacementPlugin(),
    new webpack.NamedModulesPlugin(),
    new FriendlyErrorsPlugin(),
    plugins.HtmlWebpackPlugin.app
  ]
})