text: const path = require('path');
  const webpack = require('webpack');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
    port: '8080',
    devtool: 'eval',
    entry: [
      'webpack-dev-server/client?http://localhost:8080',
      'webpack/hot/dev-server',
      './src/index'
    ],
    output: {
      path: path.join(__dirname, './dist'),
      filename: 'app.js'
    },
    plugins: [new webpack.optimize.UglifyJsPlugin({
        compressor: {
          warnings: false,
        },
      }),
      new HtmlWebpackPlugin({
        template: './src/index.tmpl.ejs'
      }),
      new webpack.HotModuleReplacementPlugin(),
    ],
    module: {
      loaders: [{
        test: /\.css$/,
        loaders: ['style', 'css']
      }, {
        test: /\.html$/,
        loader: 'html'
      }, {
        test: /\.scss$/,
        loaders: ["style", "css", "sass"],
      }, {
        test: /\.js$/,
        loaders: ['babel'],
        presets: [
          'es2015',
          'stage-2'
        ],
        include: path.join(__dirname, 'src')
      }, {
        test: /\.(woff|woff2)(\?v=\d+\.\d+\.\d+)?$/,
        loader: 'url?limit=10000&mimetype=application/font-woff'
      }, {
        test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
        loader: 'url?limit=10000&mimetype=application/octet-stream'
      }, {
        test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
        loader: 'file'
      }, {
        test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
        loader: 'url?limit=10000&mimetype=image/svg+xml'
      }, ]
    },
    devServer: {
      contentBase: './dist',
      hot: true,
      inline: true,
    }
  }
  