text: 'use strict';
  
  var path = require('path');
  var webpack = require('webpack');
  var HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
      devtool: 'eval-source-map',
      entry: [
          'webpack-dev-server/client?http://localhost:3000',
          'webpack/hot/only-dev-server',
          'react-hot-loader/patch',
          path.join(__dirname, 'app/index.js')
      ],
      output: {
          path: path.join(__dirname, '/dist/'),
          filename: '[name].js',
          publicPath: '/'
      },
      plugins: [
          new HtmlWebpackPlugin({
              template: 'app/index.tpl.html',
              inject: 'body',
              filename: 'index.html'
          }),
          new webpack.optimize.OccurrenceOrderPlugin(),
          new webpack.HotModuleReplacementPlugin(),
          new webpack.NoEmitOnErrorsPlugin(),
          new webpack.NamedModulesPlugin(),
          new webpack.DefinePlugin({
              'process.env.NODE_ENV': JSON.stringify('development')
          })
      ],
      module: {
          rules: [
              {
                  enforce: 'pre',
                  test: /\.js$/,
                  exclude: /node_modules/,
                  loader: 'eslint-loader',
                  options: {
                      configFile: '.eslintrc',
                      failOnWarning: false,
                      failOnError: false
                  }
              },
              {
                  test: /\.js?$/,
                  exclude: /node_modules/,
                  loader: 'babel-loader'
              },
              {
                  test: /\.json?$/,
                  loader: 'json-loader'
              },
              {
                  test: /\.scss$/,
                  loaders: [
                      'style-loader',
                      'css-loader?modules&importLoaders=1&localIdentName=[path]___[name]__[local]___[hash:base64:5]',
                      'resolve-url-loader',
                      'sass-loader?sourceMap'
                  ]
              },
              {
                  test: /\.css$/,
                  loaders: [
                      'style-loader?sourceMap',
                      'css-loader?modules&importLoaders=1&localIdentName=[path]___[name]__[local]___[hash:base64:5]'
                  ]
              },
              { test: /\.woff(2)?(\?[a-z0-9#=&.]+)?$/, loader: 'url-loader?limit=10000&mimetype=application/font-woff' },
              { test: /\.(ttf|eot|svg)(\?[a-z0-9#=&.]+)?$/, loader: 'file-loader' },
              {
                  test: /\.(jpe?g|png|gif|svg)$/i,
                  loaders: [
                      "file-loader",
                  ]
              }
          ]
      }
  };
  