text: const path = require('path')
  const HtmlWebpackPlugin = require('html-webpack-plugin')
  const webpack = require('webpack')
  const CopyWebpackPlugin = require('copy-webpack-plugin')
  
  const PATHS = {
    app: path.join(__dirname, 'app'),
    build: path.join(__dirname, 'build')
  }
  
  const VENDOR_LIBS = [
  
  ]
  
  module.exports = {
    // Entry accepts a path or an object of entries.
    // We'll be using the latter form given it's
    // convenient with more complex configurations.
    entry: {
      app: PATHS.app
      // ,vendor: VENDOR_LIBS
    },
    output: {
      path: PATHS.build,
      // publicPath: '/build/',
      filename: '[name].[chunkhash].js'
    },
    plugins: [
      new webpack.optimize.CommonsChunkPlugin({
        name: ['manifest']
      }),
      new HtmlWebpackPlugin({
        title: 'React Challenge',
        template: 'app/index.html'
      }),
      new CopyWebpackPlugin([
        { from: 'app/assets' }
      ]),
      new webpack.DefinePlugin({
        "process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV)
      })
    ],
    devtool: 'eval-source-map',
    module: {
      rules: [
        {
          test: /\.jsx?$/,
          exclude: /node_modules/,
          loader: 'babel-loader'
          // ,query: {
          //   presets: ['react', 'es2015', 'stage-2']
          // }
        },
        {
          test: /\.png$/,
          loader: 'url'
        },
        {
          test: /\.css$/,
          loader: 'style-loader!css-loader'
        },
        {
          test: /\.(ttf|svg|woff)$/,
          loader: 'file-loader?hash=sha512&digest=hex&name=[hash].[ext]'
        },
        {
          test: /\.scss$/,
          use: ['style-loader', 'css-loader', 'sass-loader']
        }
      ]
    },
    resolve: {
      // resolver: [
      //   path.resolve(__dirname, 'app'),
      //   path.resolve(__dirname, 'node_modules')
      // ],
      modules: [
        path.resolve(__dirname, 'app'),
        'node_modules'
      ],
      extensions: ['.js', '.jsx', '.json']
    },
    stats: {
      color: true,
      reason: true,
      chunks: false
    }
  }
  