text: "use strict";
  var webpack = require('webpack');
  var path = require('path');
  var HtmlWebpackPlugin = require('html-webpack-plugin');
  
  const HOST = process.env.HOST || "127.0.0.1";
  const PORT = process.env.PORT || "8888";
  
  module.exports = {
    entry: [
      `webpack-dev-server/client?http://${HOST}:${PORT}`,
      `webpack/hot/only-dev-server`,
      `react-validation/lib/src/validation.jsx`,
      `./examples/index.jsx` // Your appʼs entry point
    ],
    devtool: process.env.WEBPACK_DEVTOOL || 'cheap-module-source-map',
    output: {
      path: path.join(__dirname, 'docs'),
      filename: 'bundle.js'
    },
    resolve: {
      modulesDirectories: ['node_modules', 'bower_components'],
      extensions: ['', '.js', '.jsx']
    },
    module: {
      loaders: [
        {
          test: /\.jsx?$/,
          exclude: /(node_modules|bower_components|public)/,
          loaders: ['react-hot-loader/webpack']
        },
        {
          test: /.jsx?$/,
          loader: 'babel-loader',
          include: [
            path.resolve(__dirname, "src"),
            path.resolve(__dirname, "examples"),
            path.resolve(__dirname, "node_modules/react-validation"),
          ]
        },
        {
          test: /\.json$/,
          loader: 'json'
        }
      ],
      preLoaders: [
        {
          test: /\.jsx?$/,
          exclude: /(node_modules|bower_components|public)/,
          loader: 'eslint-loader'
        }
      ]
    },
    devServer: {
      contentBase: "./docs",
      // do not print bundle build stats
      noInfo: true,
      // enable HMR
      hot: true,
      // embed the webpack-dev-server runtime into the bundle
      inline: true,
      // serve index.html in place of 404 responses to allow HTML5 history
      historyApiFallback: true,
      port: PORT,
      host: HOST
    },
    plugins: [
      new webpack.NoErrorsPlugin(),
      new webpack.HotModuleReplacementPlugin(),
      new HtmlWebpackPlugin({
        template: './examples/template.html'
      })
    ]
  };
  