{"size": 948, "ext": "js", "max_stars_repo_path": "config/webpack.dev.config.js", "max_stars_repo_name": "Frontend-organization/filtering-interview-01", "max_stars_repo_stars_event_min_datetime": "2021-09-02T05:10:13.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-02T05:10:13.000Z", "max_issues_repo_path": "config/webpack.dev.config.js", "max_issues_repo_name": "Frontend-organization/filtering-interview-01", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "config/webpack.dev.config.js", "max_forks_repo_name": "Frontend-organization/filtering-interview-01", "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": 29.625, "max_line_length": 66, "alphanum_fraction": 0.5991561181}
const DotenvWebpackPlugin = require('dotenv-webpack');
const path = require('path');

/** @type {import('webpack').Configuration} */
module.exports = {
  entry: ["react-hot-loader/patch", "./src/index"],
  devtool: "eval-source-map",
  devServer: {
    port: process.env.PORT || 8080,
    contentBase: path.join(__dirname, 'build'),
    open: true,
    host: '0.0.0.0',
    hot: true,
  },
  resolve: {
    alias: {
      'react-dom': '@hot-loader/react-dom',
      '@services': path.resolve(__dirname, '../src/services'),
      '@components': path.resolve(__dirname, '../src/components'),
      '@hooks': path.resolve(__dirname, '../src/hooks'),
      '@assets': path.resolve(__dirname, '../src/assets'),
      '@context': path.resolve(__dirname, '../src/context'),
      '@libs': path.resolve(__dirname, '../src/libs')
    }
  },
  plugins: [
    new DotenvWebpackPlugin({
      path: path.resolve(__dirname, '../.env.development')
    })
  ]
};
