{"size": 1032, "ext": "js", "max_stars_repo_path": "webpack.config.dev.js", "max_stars_repo_name": "fixate/gulp-react-webpack-hmr", "max_stars_repo_stars_event_min_datetime": "2016-04-11T07:34:23.000Z", "max_stars_repo_stars_event_max_datetime": "2016-04-14T13:33:05.000Z", "max_issues_repo_path": "webpack.config.dev.js", "max_issues_repo_name": "fixate/gulp-react-jade-webpack-hmr", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "webpack.config.dev.js", "max_forks_repo_name": "fixate/gulp-react-jade-webpack-hmr", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.4716981132, "max_line_length": 73, "alphanum_fraction": 0.605620155}
const path = require('path');
const webpack = require('webpack');

const conf = require('./gulp/gulpconfig');
const webpackBase = require('./webpack.config.base');

module.exports = {
  entry: {
    app: [
      'webpack/hot/dev-server',
      'webpack-hot-middleware/client',
      path.join(__dirname, conf.path.dev.js, 'index.js'),
    ],
  },

  mode: 'development',

  output: {
    path: path.join(__dirname, '../', conf.path.dist.js),
    publicPath: webpackBase.output.publicPath,
    filename: webpackBase.output.filename,
  },

  externals: webpackBase.externals,

  resolve: webpackBase.resolve,

  devtool: 'eval',

  stats: {
    chunks: false,
    modules: false,
  },

  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        use: ['react-hot-loader/webpack', 'babel-loader?cacheDirectory'],
      },
    ],
  },

  plugins: [].concat.apply(
    [
      new webpack.HotModuleReplacementPlugin(),
      new webpack.NoEmitOnErrorsPlugin(),
    ],
    webpackBase.plugins
  ),
};
