var webpack = require( 'webpack' );

module.exports = {
	entry: './src/index.jsx',
	// output: {
	// 	App: [
	// 		'webpack-dev-server/client?http://localhost:4001',
	// 		'webpack/hot/only-dev-server',
	// 		'./index.jsx'
	// 	]
	// },
	output: {
		filename: 'bundle.js'
	},
	module: {
		loaders: [
			{
				test: /\.jsx?$/,
				exclude: /node_modules/,
				loaders: [ 'babel-loader' ]
      }
		]
	},
	plugins: [
		new webpack.NoErrorsPlugin()
	].concat(process.env.NODE_ENV === 'production' ? [
    new webpack.DefinePlugin({
      'process.env': {
          NODE_ENV: JSON.stringify('production')
        }
    }),
    new webpack.optimize.UglifyJsPlugin()
  ] : []),
	resolve: {
		modulesDirectories: [ '', 'lib', 'node_modules' ],
		extensions: [ '', '.js', '.jsx' ]
	},
  devtool: 'sourcemap'
};

var webpack = require( 'webpack' );

module.exports = {
  entry: './src/index.jsx',
  // output: {
  //   App: [
  //     'webpack-dev-server/client?http://localhost:4001',
  //     'webpack/hot/only-dev-server',
  //     './index.jsx'
  //   ]
  // },
  output: {
    filename: 'bundle.js'
  },
  module: {
    loaders: [
      {
        test: /\.jsx?$/,
        exclude: /node_modules/,
        loaders: [ 'babel-loader' ]
      }
    ]
  },
  plugins: [
    new webpack.NoErrorsPlugin()
  ].concat(process.env.NODE_ENV === 'production' ? [
    new webpack.DefinePlugin({
      'process.env': {
          NODE_ENV: JSON.stringify('production')
        }
    }),
    new webpack.optimize.UglifyJsPlugin()
  ] : []),
  resolve: {
    modulesDirectories: [ '', 'lib', 'node_modules' ],
    extensions: [ '', '.js', '.jsx' ]
  },
  devtool: 'sourcemap'
};

Fix formatting in webpack config