{"size": 615, "ext": "js", "max_stars_repo_path": "webpack/webpack.config.production.js", "max_stars_repo_name": "chemoish/videojs-bookmark", "max_stars_repo_stars_event_min_datetime": "2020-11-28T16:06:24.000Z", "max_stars_repo_stars_event_max_datetime": "2020-11-28T16:06:24.000Z", "max_issues_repo_path": "webpack/webpack.config.production.js", "max_issues_repo_name": "chemoish/videojs-bookmark", "max_issues_repo_issues_event_min_datetime": "2016-06-09T01:51:50.000Z", "max_issues_repo_issues_event_max_datetime": "2016-09-02T19:25:37.000Z", "max_forks_repo_path": "webpack/webpack.config.production.js", "max_forks_repo_name": "chemoish/videojs-bookmark", "max_forks_repo_forks_event_min_datetime": "2017-10-03T02:06:14.000Z", "max_forks_repo_forks_event_max_datetime": "2020-11-22T16:04:40.000Z"}
{"max_stars_count": 1, "max_issues_count": 8, "max_forks_count": 2, "avg_line_length": 26.7391304348, "max_line_length": 65, "alphanum_fraction": 0.7056910569}
const CleanWebpackPlugin = require('clean-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const path = require('path');
const webpack = require('webpack');
const webpackConfig = require('./webpack.config');

webpackConfig.output.filename = '[name].min.js';

webpackConfig.plugins = [
  new CleanWebpackPlugin('dist', {
    root: path.resolve(__dirname, '..'),
  }),
  new ExtractTextPlugin('[name].min.css', {
    allChunks: true,
  }),
  new webpack.optimize.DedupePlugin(),
  new webpack.optimize.UglifyJsPlugin({
    comments: false,
  }),
];

module.exports = webpackConfig;
