text: const path = require('path')
  const HTMLWebpackPlugin = require('html-webpack-plugin')
  
  
  module.exports = {
    entry: ['babel-polyfill', './src/index.js'],
    output: {
      path: path.resolve(__dirname, '../public'),
      filename: 'main.js',
    },
    module: {
      loaders: [
        {
          test: /\.js$/,
          exclude: /node_modules/,
          loader: 'babel-loader'
        },
        {
          test: /\.less$/,
          use: [{
            loader: "style-loader" // creates style nodes from JS strings
          }, {
            loader: "css-loader" // translates CSS into CommonJS
          }, {
            loader: "less-loader" // compiles Less to CSS
          }]
        }
      ]
    },
    plugins: [
      new HTMLWebpackPlugin({
        title: 'Gym Bunny',
        template: './src/template.html'
      })
    ],
    resolve: {
      modules: [
        path.resolve(__dirname, 'src'),
        'node_modules'
      ]
    },
    devtool: 'source-map'
  }
  