{"size": 599, "ext": "js", "max_stars_repo_path": "webpack/main.webpack.js", "max_stars_repo_name": "jcsj2/mini-video-me", "max_stars_repo_stars_event_min_datetime": "2022-03-17T21:47:56.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-17T21:47:56.000Z", "max_issues_repo_path": "webpack/main.webpack.js", "max_issues_repo_name": "jcsj2/mini-video-me", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "webpack/main.webpack.js", "max_forks_repo_name": "jcsj2/mini-video-me", "max_forks_repo_forks_event_min_datetime": "2022-03-17T21:47:14.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-17T21:47:14.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 19.9666666667, "max_line_length": 70, "alphanum_fraction": 0.5626043406}
const { createPackageJSONDistVersion } = require('./plugins.webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const package = require('../package.json');

module.exports = {
  resolve: {
    extensions: ['.ts', '.js']
  },

  entry: './electron/main.ts',

  module: {
    rules: require('./rules.webpack'),
  },

  plugins: [
    new CopyWebpackPlugin({
      patterns: [
        {
          from: "./package.json",
          to: "../package.json",

          transform(content, path) {
            return createPackageJSONDistVersion(content)
          }
        }]
    })
  ]
}
