text: var webpack = require('webpack');
  process.env.NODE_ENV = 'production';
  
  module.exports = {
    entry: {
      'react-mobile-picker': './src/index.js'
    },
  
    output: {
      filename: './lib/[name].js',
      library: 'Picker',
      libraryTarget: 'umd'
    },
  
    externals: [
      {
        react: {
          root: 'React',
          commonjs2: 'react',
          commonjs: 'react',
          amd: 'react'
        }
      }
    ],
  
    module: {
      loaders: [
        {test: /\.js$/, loader: 'babel', exclude: /node_modules/},
        {test: /\.less$/, loader: 'style!css!autoprefixer!less'}
      ]
    },
  
    plugins: [
      new webpack.optimize.OccurenceOrderPlugin(),
      new webpack.DefinePlugin({
        'process.env': {
          NODE_ENV: '"production"'
        }
      }),
      new webpack.optimize.UglifyJsPlugin({
        compressor: {
          warnings: false
        }
      })
    ]
  };
  