text: var debug = process.env.NODE_ENV !== "production";
  var webpack = require('webpack');
  var path = require('path');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
      devtool: debug ?
          "inline-sourcemap" :
          false,
      entry: "./src/index.js",
      module: {
          rules: [{
              test: /\.js|.jsx?$/,
              exclude: /(node_modules|bower_components)/,
              use: {
                  loader: 'babel-loader'
              }
          }]
      },
      resolve: {
          extensions: ['.js', '.jsx'] // '' is needed to find modules like "jquery"
      },
      output: {
          path: __dirname + "/dist/",
          filename: "build.min.js"
      },
      plugins: [
          new HtmlWebpackPlugin({
              template: 'src/index.html'
          })
      ]
  };