text: /* eslint-disable */
  
  var path = require('path');
  var webpack = require('webpack');
  
  module.exports = {
    devtool: 'source-map',
    entry: ['webpack-hot-middleware/client', 'babel-polyfill', './index'],
    output: {
      path: path.join(__dirname, 'dist'),
      filename: 'bundle.js',
      publicPath: '/dist/',
    },
    plugins: [new webpack.HotModuleReplacementPlugin(), new webpack.NoEmitOnErrorsPlugin()],
    module: {
      loaders: [
        {
          test: /\.md$/,
          loader: 'html-loader!markdown-loader?gfm=false',
        },
        {
          test: /\.(js|jsx)$/,
          exclude: /node_modules/,
          loader: 'babel-loader',
          query: {
            plugins: [
              [
                'react-transform',
                {
                  transforms: [
                    {
                      transform: 'react-transform-hmr',
                      imports: ['react'],
                      locals: ['module'],
                    },
                    {
                      transform: 'react-transform-catch-errors',
                      imports: ['react', 'redbox-react'],
                    },
                  ],
                },
              ],
            ],
          },
          exclude: /node_modules/,
          include: __dirname,
        },
        {
          test: /\.css$/,
          loaders: ['style-loader', 'raw-loader'],
          include: __dirname,
        },
        {
          test: /\.svg$/,
          loader: 'url-loader?limit=10000&mimetype=image/svg+xml',
          include: path.join(__dirname, 'assets'),
        },
        {
          test: /\.png$/,
          loader: 'url-loader?mimetype=image/png',
          include: path.join(__dirname, 'assets'),
        },
        {
          test: /\.gif$/,
          loader: 'url-loader?mimetype=image/gif',
          include: path.join(__dirname, 'assets'),
        },
        {
          test: /\.jpe?g$/,
          loader: 'url-loader?mimetype=image/jpg',
          include: path.join(__dirname, 'assets'),
        },
        {
          test: /\.webp$/,
          loader: 'url-loader?mimetype=image/webp',
          include: path.join(__dirname, 'assets'),
        },
      ],
    },
  };
  