text: const path = require('path')
  const webpack = require('webpack');
  const ExtractTextPlugin = require("extract-text-webpack-plugin");
  
  var webpackConfig = {
      devtool: 'eval',
  
      entry: [
          'webpack-hot-middleware/client',
          './src/index.js'
      ],
  
      output: {
          path: path.join(__dirname, 'public'),
          filename: "bundle.js",
          publicPath: '/public/'
      },
  
      plugins: [
          new webpack.HotModuleReplacementPlugin(),
          new webpack.NoErrorsPlugin(),
          new ExtractTextPlugin("style.css")
      ],
  
      module: {
          loaders: [
              {
                  loader: "babel-loader",
                  test: /\.js$/,
                  exclude: /node_modules/
              },{ 
                  test: /\.scss$/,
                  loader: ExtractTextPlugin.extract("style-loader", "css-loader!sass-loader")
              },{ 
                  test: /\.png$/,
                  loader: 'file' 
              },{ 
                  test: /\.(ttf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
                  loader: 'file'
              }
          ]
      },
      sassLoader: {
          includePaths: [path.resolve(__dirname, "./src/styles")]
      }
  };
  
  module.exports = webpackConfig;