{"size": 1082, "ext": "js", "max_stars_repo_path": "config/webpack.renderer.config.js", "max_stars_repo_name": "shenlvmeng/calendone", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "config/webpack.renderer.config.js", "max_issues_repo_name": "shenlvmeng/calendone", "max_issues_repo_issues_event_min_datetime": "2021-01-28T19:52:56.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-25T18:43:57.000Z", "max_forks_repo_path": "config/webpack.renderer.config.js", "max_forks_repo_name": "shenlvmeng/calendone", "max_forks_repo_forks_event_min_datetime": "2018-12-19T12:33:59.000Z", "max_forks_repo_forks_event_max_datetime": "2019-03-17T12:18:05.000Z"}
{"max_stars_count": null, "max_issues_count": 8, "max_forks_count": 3, "avg_line_length": 27.05, "max_line_length": 58, "alphanum_fraction": 0.4833641405}
const merge = require('webpack-merge');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const base = require('./dev/base');

base.output.publicPath = '../assets/';
module.exports = merge({
    plugins: [
        new HtmlWebpackPlugin({
            filename: '../pages/index.html',
            template: 'src/renderer/templates/index.html',
            chunks: ['index']
        }),
        new CopyWebpackPlugin([
            {
                from: './src/renderer/assets/*',
                to: '../',
                flatten: true
            },
            {
                from: './src/package.json',
                to: '../',
                flatten: true
            }
        ])
    ],
    mode: 'production',
    target: 'electron-renderer',
    optimization: {
        minimizer: [
            new TerserPlugin({
                parallel: true,
                sourceMap: true,
                cache: true
            })
        ]
    }
}, base);
