text: var path = require('path');
  var webpack = require('webpack');
  var ExtractTextPlugin = require("extract-text-webpack-plugin");
  
  module.exports = {
    devtool: 'source-map',
    context: path.join(__dirname, 'app'),
    entry: [
      './main',
      './less/main.less'
    ],
    output: {
      path: path.join(__dirname, 'dist'),
      filename: 'bundle.js'
    },
    plugins: [
      new webpack.optimize.OccurenceOrderPlugin(),
      new webpack.DefinePlugin({
        'process.env': {
          'NODE_ENV': JSON.stringify('production')
        }
      }),
      new webpack.optimize.UglifyJsPlugin({
        compressor: {
          warnings: false
        }
      }),
      new ExtractTextPlugin('[name].css')
    ],
    module: {
      loaders: [
        { test: /\.js$/, loaders: ['babel'], include: path.join(__dirname, 'app') },
        { test: /\.less$/, loader: 'style!css!less' },
        { test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader", "less-loader") },
        { test: /\.less$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader!less-loader") }
      ]
    }
  };
  