{"size": 667, "ext": "js", "max_stars_repo_path": "examples/projects/javascript-vanilla-with-webpack/webpack.config.js", "max_stars_repo_name": "alachambre/bpmn-visualization-examples", "max_stars_repo_stars_event_min_datetime": "2020-05-25T08:34:06.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-14T10:34:54.000Z", "max_issues_repo_path": "examples/projects/javascript-vanilla-with-webpack/webpack.config.js", "max_issues_repo_name": "alachambre/bpmn-visualization-examples", "max_issues_repo_issues_event_min_datetime": "2020-05-25T08:03:03.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-25T16:43:30.000Z", "max_forks_repo_path": "examples/projects/javascript-vanilla-with-webpack/webpack.config.js", "max_forks_repo_name": "alachambre/bpmn-visualization-examples", "max_forks_repo_forks_event_min_datetime": "2020-08-04T13:02:15.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-27T04:13:53.000Z"}
{"max_stars_count": 31, "max_issues_count": 114, "max_forks_count": 6, "avg_line_length": 24.7037037037, "max_line_length": 74, "alphanum_fraction": 0.5832083958}
// Generated using webpack-cli http://github.com/webpack-cli
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
    mode: 'development',
    entry: './src/index.js',
    output: {
        path: path.resolve(__dirname, 'dist'),
    },
    devServer: {
        open: true,
        host: 'localhost',
    },
    plugins: [
        new HtmlWebpackPlugin({
            template: 'index.html',
        }),
    ],

    resolve:{
        // MANDATORY, otherwise generates a non working bundle
        // https://webpack.js.org/configuration/resolve/#resolvemainfields
        mainFields: ['module', 'main'],
    },
};
