text: 'use strict'
  
  const path = require('path')
  const webpack = require('webpack')
  const devConfig = require('./webpack.config.dev')
  
  module.exports = [{
    entry: [
      'babel-polyfill',
      './ui/js/index'
    ],
    output: {
      path: path.join(__dirname, 'public/js'),
      filename: 'bundle.js',
      publicPath: '/js/'
    },
    plugins: [
      new webpack.DefinePlugin({
        'process.env.NODE_ENV': JSON.stringify('production')
      }),
      new webpack.optimize.DedupePlugin(),
      new webpack.optimize.OccurenceOrderPlugin(),
      new webpack.optimize.UglifyJsPlugin({
        compress: {
          warnings: false
        }
      })
    ],
    module: {
      loaders: [
        {
          test: /\.js$|\.jsx$/,
          loader: 'babel',
          include: __dirname,
          exclude: /node_modules/,
          query: {
            presets: ['es2015', 'react']
          }
        },
        {
          test: /\.json$/,
          loader: 'json-loader'
        }
      ]
    },
    resolve: {
      extensions: ['', '.js', '.jsx', '.json']
    }
  },
    // css
    devConfig[1]
  ]
  