text: const webpack = require('webpack');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  var path = require('path');
  
  module.exports = {
  	entry: {
  		index: './index.js'
  	},
  	output: {
  		path: path.join(__dirname, 'dist'),
  		filename: '[name].js'
  	},
  	watch: true,
  	devServer: {
  		contentBase: path.join(__dirname, 'dist'),
  		hot: true,
  		port: 9000
  	},
  	plugins: [
  		new HtmlWebpackPlugin({
  			filename: 'index.html',
  			template: 'index.html'
  		}),
  		new webpack.NamedModulesPlugin(),
  		new webpack.HotModuleReplacementPlugin()
  	]
  };
  