text: const path = require('path');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  const CleanWebpackPlugin = require('clean-webpack-plugin');
  const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
  const Dotenv = require('dotenv-webpack');
  
  
  const projectName = "BikeTrack";
  
  
  module.exports = {
    entry: './src/main.js',
    output: {
      filename: 'bundle.js',
      path: path.resolve(__dirname, 'dist')
    },
    devtool: 'inline-source-map',
    devServer: {
      contentBase: './dist'
    },
    plugins: [
      new Dotenv(),
      new UglifyJsPlugin({sourceMap:true}),
      new CleanWebpackPlugin(['dist']),
      new HtmlWebpackPlugin({
        title: `BikeTrack`,
        template: './src/index.html',
        inject: 'body'
      })
    ],
    module: {
      rules: [
        {
          test: /\.css$/,
          use: [
            'style-loader',
            'css-loader'
          ]
        },
        {
          test: /\.js$/,
          exclude: /node_modules/,
          loader: "eslint-loader"
        },
        {
          test: /\.js$/,
          exclude: [
            /node_modules/,
            /spec/
          ],
          loader: "babel-loader",
          options: {
            presets: ['es2015']
          }
        }
      ]
    }
  };
  