text: var webpack = require('webpack');
  var loaders = require('./webpack.loaders');
  var path = require('path');
  var CopyWebpackPlugin = require('copy-webpack-plugin');
  var HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
    context: path.join(__dirname, "src"),
    devtool: 'inline-sourcemap',
    entry: {
      app: "./app.js",
      vendor: [
        'axios',
        'react',
        'react-dom',
        'react-redux',
        'react-router',
        'redux',
        'redux-logger',
        'redux-thunk'
      ]
    },
    resolve: {
      root: path.resolve(__dirname),
      alias: {
        'app/config': 'src/config',
        'app/utils': 'src/utils',
        'app/assets': 'src/assets',
        'app/main-board': 'src/modules/main-board'
      },
      extensions: ['', '.js', '.jsx']
    },
    module: {
      loaders: [
        {
          test: /\.jsx?$/,
          exclude: /(node_modules|bower_components)/,
          loader: ['babel-loader'],
          query: {
            presets: ['react', 'es2015', 'stage-0'],
            plugins: ['react-html-attrs', 'transform-class-properties', 'transform-decorators-legacy'],
          }
        },
        {
          test: /\.css$/,
          loader: 'style!css-loader'
        },
        {
          test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
          loader: "file"
        },
        {
          test: /\.woff(\?v=\d+\.\d+\.\d+)?$/,
          loader: "url?prefix=font/&limit=5000"
        },
        {
          test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
          loader: "url?limit=10000&mimetype=application/octet-stream"
        },
        {
          test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
          loader: "url?limit=10000&mimetype=image/svg+xml"
        },
        {
          test: /\.gif/,
          loader: "file?name=./images/[sha512:hash:base64:7].[ext]"
        },
        {
          test: /\.jpg/,
          loader: "file?name=./images/[sha512:hash:base64:7].[ext]"
        },
        {
          test: /\.png/,
          loader: "file?name=./images/[sha512:hash:base64:7].[ext]"
        }
      ]
    },
    output: {
      path: path.join(__dirname, 'dist'),
      filename: "/[name]-[hash].js"
    },
    plugins: [
      new webpack.optimize.DedupePlugin(),
      new webpack.optimize.CommonsChunkPlugin("vendor", "/[name]-[hash].js"),
      new HtmlWebpackPlugin({
        template: __dirname + "/src/index.tmpl.html"
      }),
    ],
  };