{"size": 2247, "ext": "js", "max_stars_repo_path": "configs/gulp-webpack.js", "max_stars_repo_name": "bronzer-eagle/itrex-test-2", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "configs/gulp-webpack.js", "max_issues_repo_name": "bronzer-eagle/itrex-test-2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "configs/gulp-webpack.js", "max_forks_repo_name": "bronzer-eagle/itrex-test-2", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 34.0454545455, "max_line_length": 82, "alphanum_fraction": 0.3591455274}
const webpack               = require('webpack'),
      path                  = require('path'),
      CopyWebpackPlugin     = require('copy-webpack-plugin'),
      publicPath            = path.join(process.cwd(), '/public');

module.exports              = {
    entry                   : path.join(process.cwd(), `/resources/index.js`),
    output                  : {
        path                : publicPath,
        publicPath          : process.env.apiHttp,
        filename            : 'index.js'
    },
    module                  : {
        loaders             : [
            {
                test        : /.json$/,
                loaders     : ['json']
            },
            {
                test        : /\.(css|scss)$/,
                loaders     : [
                    'style',
                    'css',
                    'sass'
                ]
            },
            {
                test         : /\.js$/,
                exclude      : /node_modules/,
                loader       : 'babel-loader',
                query        : {
                    presets  : ['es2015']
                }
            },
            {
                test         : /.html$/,
                loaders      : ['html']
            },
            { test: /\.jpg$/, loader: "url-loader?mimetype=image/jpg" },
            { test: /\.png$/, loader: "url-loader?mimetype=image/png" }
        ]
    },
    resolveLoader            : { root: path.join(process.cwd(), 'node_modules') },
    plugins                  : [
        new webpack.optimize.OccurrenceOrderPlugin(),
        new webpack.NoErrorsPlugin(),
        new webpack.ProvidePlugin({
            $: "jquery",
            jQuery: "jquery",
            moment: 'moment',
            _: 'underscore'
        }),
        new CopyWebpackPlugin([
                {
                    from: path.join(process.cwd(), 'resources/libs'),
                    to  : path.join(process.cwd(), 'public/libs')
                },
                {
                    from: path.join(process.cwd(), 'resources/img'),
                    to  : path.join(process.cwd(), 'public/img')
                }
        ])
    ],
    devtool                  : 'cheap-module-eval-source-map'
};
