{"size": 1149, "ext": "js", "max_stars_repo_path": "webpack.config.babel.js", "max_stars_repo_name": "victorkarangwa4/kujua-web-search", "max_stars_repo_stars_event_min_datetime": "2020-02-27T17:08:44.000Z", "max_stars_repo_stars_event_max_datetime": "2020-04-25T19:07:01.000Z", "max_issues_repo_path": "webpack.config.babel.js", "max_issues_repo_name": "victorkarangwa4/kujua-web-search", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "webpack.config.babel.js", "max_forks_repo_name": "victorkarangwa4/kujua-web-search", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.4489795918, "max_line_length": 70, "alphanum_fraction": 0.5230635335}
// const HtmlWebPackPlugin = require("html-webpack-plugin");
const dotenv =require('dotenv');
import webpack from 'webpack';
const path = require('path');

dotenv.config();
module.exports = {
  mode: 'development',
  entry: path.resolve(__dirname, 'src/index'),
  module: {
    rules: [
      {
        test: /\.(js|jsx)$/,
        exclude: /node_modules/,
        use: {
          loader: 'babel-loader'
        }
      },
      {
        test: /\.css$/i,
        use: ['style-loader', 'css-loader']
      },
      {
        include: path.resolve(
          __dirname,
          './node_modules/react-alice-carousel/lib/alice-carousel.css'
        ),
        test: /\.(s[ac]ss|css)$/i,
        use: ['style-loader', 'css-loader', 'sass-loader']
      },
      {
        test: /\.html$/,
        use: [
          {
            loader: 'html-loader'
          }
        ]
      }
    ]
  },
  plugins: [new webpack.HotModuleReplacementPlugin()],
  devServer: {
    contentBase: path.resolve(__dirname, 'public/'),
    publicPath: 'http://localhost:3000/dist',
    historyApiFallback: true,
    port: process.env.PORT || 7000,
    hotOnly: true
  }
};