{"size": 961, "ext": "js", "max_stars_repo_path": "webpack/conf.dev.js", "max_stars_repo_name": "felamaslen/calculator", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "webpack/conf.dev.js", "max_issues_repo_name": "felamaslen/calculator", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "webpack/conf.dev.js", "max_forks_repo_name": "felamaslen/calculator", "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": 26.6944444444, "max_line_length": 55, "alphanum_fraction": 0.5712799168}
/* eslint-disable no-sync, init-declarations */
const webpack = require('webpack');
const Dotenv = require('dotenv-webpack');

const webpackConfig = require('./conf.common');
const moduleConfigDev = require('./module.dev');

module.exports = (...args) => ({
    ...webpackConfig,
    devtool: 'cheap-module-eval-source-map',
    entry: [
        'webpack/hot/only-dev-server',
        'webpack-hot-middleware/client',
        'react-hot-loader/patch',
        ...webpackConfig.entry
    ],
    output: {
        path: '/',
        publicPath: '/',
        filename: 'js/bundle.js'
    },
    plugins: [
        ...webpackConfig.plugins(...args),
        new webpack.DefinePlugin({
            'process.env': {
                NODE_ENV: JSON.stringify('development')
            }
        }),
        new webpack.HotModuleReplacementPlugin(),
        new webpack.NamedModulesPlugin(),
        new Dotenv({ path: '.env' })
    ],
    module: moduleConfigDev
});

