text: const webpack = require('webpack')
  const path = require('path')
  
  var HtmlWebpackPlugin = require('html-webpack-plugin')
  
  module.exports = {
    entry: [
      'webpack-dev-server/client?http://0.0.0.0:3030',
      'webpack/hot/only-dev-server',
      path.resolve(__dirname, 'app')
    ],
    output: {
      path: path.resolve(__dirname, 'public/build/'),
      publicPath: '/',
      filename: '[name].js'
    },
    module: {
      rules: [
        {
          test: /\.js$/,
          loader: 'babel-loader',
          exclude: /node_modules/
        },
        {
          test: /\.html$/,
          loader: 'html-loader'
        },
        {
          test: /\.styl$/,
          loader: 'style-loader!css-loader!stylus-loader'
        },
        {
          test: /\.svg$/,
          loader: 'raw-loader'
        }
      ]
    },
    plugins: [
      new HtmlWebpackPlugin(
        {
          template: path.resolve(__dirname, 'public/index.html'),
          favicon: path.resolve(__dirname, 'public/favicon.ico'),
          inject: true,
          minify: false
        }
      ),
      new webpack.HotModuleReplacementPlugin(),
      new webpack.NoEmitOnErrorsPlugin(),
      new webpack.NamedModulesPlugin()
    ],
    devtool: 'eval-cheap-module-source-map',
    devServer: {
      contentBase: path.resolve(__dirname, 'public'),
      historyApiFallback: true,
      hot: true,
      open: true,
      port: 3030,
      stats: 'minimal'
    }
  }
  