{"size": 814, "ext": "js", "max_stars_repo_path": "webpack.config.js", "max_stars_repo_name": "sc-github-dev/autobio", "max_stars_repo_stars_event_min_datetime": "2022-01-24T23:23:15.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-24T23:23:15.000Z", "max_issues_repo_path": "webpack.config.js", "max_issues_repo_name": "sc-github-dev/autobio", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "webpack.config.js", "max_forks_repo_name": "sc-github-dev/autobio", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.6666666667, "max_line_length": 68, "alphanum_fraction": 0.57002457}
const path = require('path');

const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
const TerserPlugin = require('terser-webpack-plugin');

module.exports = {
  
  entry: './src/js/index.js',
  
  devtool: 'source-map',
  output: {
    
    path: path.resolve(__dirname, './src'),
    
    filename: 'bundle.min.js'

  },
  optimization: {
    minimize: true,
    minimizer: [
      new TerserPlugin({
        extractComments: false,
      }),
      new CssMinimizerPlugin()
    ]
  },
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: [MiniCssExtractPlugin.loader, "css-loader"],
      },
    ],
  },
  plugins: [new MiniCssExtractPlugin({
    filename:"bundle.min.css"
  })],
};
