{"size": 645, "ext": "js", "max_stars_repo_path": "webpack/common/prod.config.js", "max_stars_repo_name": "ojengwa/base", "max_stars_repo_stars_event_min_datetime": "2019-03-08T22:12:38.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-28T10:10:58.000Z", "max_issues_repo_path": "webpack/common/prod.config.js", "max_issues_repo_name": "ojengwa/base", "max_issues_repo_issues_event_min_datetime": "2020-06-05T18:49:03.000Z", "max_issues_repo_issues_event_max_datetime": "2021-06-01T22:28:04.000Z", "max_forks_repo_path": "webpack/common/prod.config.js", "max_forks_repo_name": "ojengwa/base", "max_forks_repo_forks_event_min_datetime": "2020-05-26T10:58:31.000Z", "max_forks_repo_forks_event_max_datetime": "2020-12-12T11:45:16.000Z"}
{"max_stars_count": 9, "max_issues_count": 4, "max_forks_count": 2, "avg_line_length": 28.0434782609, "max_line_length": 91, "alphanum_fraction": 0.615503876}
const Dotenv = require('dotenv-webpack');
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');

// importLoader:1 from https://blog.madewithenvy.com/webpack-2-postcss-cssnext-fdcd2fd7d0bd

module.exports = {
    // devtool: 'source-map', // No need for dev tool in production

    plugins: [
        new ExtractTextPlugin('styles/[name].css'),
        new webpack.optimize.OccurrenceOrderPlugin(),
        new webpack.optimize.UglifyJsPlugin({
            compress: {
                warnings: false
            }
        }),
        new Dotenv({
            systemvars: true
        })
    ]
};
