{"size": 576, "ext": "js", "max_stars_repo_path": "webpack_demos/code_splitting/webpack.config.js", "max_stars_repo_name": "t4d-classes/adv-javascript-tooling-and-dev_11152021", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "webpack_demos/code_splitting/webpack.config.js", "max_issues_repo_name": "t4d-classes/adv-javascript-tooling-and-dev_11152021", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "webpack_demos/code_splitting/webpack.config.js", "max_forks_repo_name": "t4d-classes/adv-javascript-tooling-and-dev_11152021", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.3333333333, "max_line_length": 70, "alphanum_fraction": 0.5920138889}
const HtmlWebpackPlugin = require('html-webpack-plugin');
const path = require('path');

module.exports = {

  mode: 'development', // production
  entry: {
    index: {
      import: './src/index.js',
      dependOn: 'vendor',
    },
    vendor: './src/vendor.js'
  },
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: '[name].bundle-[chunkhash:6].js',
  },
  devtool: 'source-map',
  devServer: {
    compress: true,
    port: 9000,
  },
  plugins: [new HtmlWebpackPlugin({ template: 'public/index.html' })],
  externals: {
    'jquery': 'jQuery',
  },
};