{"size": 1278, "ext": "js", "max_stars_repo_path": "webpack.config.js", "max_stars_repo_name": "DaNish808/audio-play", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "webpack.config.js", "max_issues_repo_name": "DaNish808/audio-play", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "webpack.config.js", "max_forks_repo_name": "DaNish808/audio-play", "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": 22.0344827586, "max_line_length": 85, "alphanum_fraction": 0.5312989045}
const path = require('path');
const HtmlWebPackPlugin = require("html-webpack-plugin");
const webpack = require('webpack');

module.exports = {
  entry: ["babel-polyfill", "./src"],
  output: {
    filename: "main.js"
  },
  mode: "development",
  // watch: true,
  module: {
    rules: [
      {
        test:/\.css$/,
        use:['style-loader','css-loader']
      },
      {
        test: /\.(mp3)$/,
        use: [
          {
            loader: 'file-loader',
            options: {}
          }
        ]
      },
      {
        test: /\.js$/,
        exclude: /node_modules/,
        use: {
          loader: "babel-loader"
        }
      }
    ],
  },
  node: {
    fs: 'empty'
  },
  plugins: [
    new HtmlWebPackPlugin({
      template: "./src/index.html",
      filename: "./index.html"
    }),
    new webpack.DefinePlugin({
      'process.env': {
        FIREBASE_URL: JSON.stringify(process.env.FIREBASE_URL),
        FIREBASE_STORAGE_BUCKET: JSON.stringify(process.env.FIREBASE_STORAGE_BUCKET),
        FIREBASE_SENDER_ID: JSON.stringify(process.env.FIREBASE_SENDER_ID),
        FIREBASE_KEY: JSON.stringify(process.env.FIREBASE_KEY),
      },
    })
  ],
  devServer: {
    contentBase: path.join(__dirname, "dist"),
    compress: true,
    open: true
  }
}