text: const webpack = require('webpack');
  const path = require('path');
  
  const DEMO_DIR = path.resolve(__dirname, 'demo');
  
  module.exports = {
    entry: [
      "react-hot-loader/patch",
      'webpack-dev-server/client?http://localhost:8080',
      'webpack/hot/only-dev-server',
      path.resolve(DEMO_DIR, 'index.jsx')
    ],
    output: {
      path: DEMO_DIR,
      filename: 'bundle.js',
      publicPath: 'http://localhost:8080/'
    },
    devServer: {
      hot: true,
      contentBase: DEMO_DIR,
      publicPath: 'http://localhost:8080/'
    },
    mode: 'development',
    module: {
      rules: [
        {
          test: /\.jsx?/,
          loader: 'babel-loader',
          exclude: /node_modules/
        }, {
          test: /\.css/,
          loader: 'style-loader!css-loader?modules=true&localIdentName=[name]__[local]___[hash:base64:5]'
        }, {
          test: /\.scss$/,
          loader: 'style-loader!css-loader?importLoaders=1&modules&localIdentName=[name]__[local]___[hash:base64:5]!sass-loader'
        }, {
          test: /\.svg$/,
          loader: 'raw-loader'
        }
      ]
    },
    plugins: [
      new webpack.HotModuleReplacementPlugin(),
      new webpack.NamedModulesPlugin()
    ]
  };
  