text: var debug = process.env.NODE_ENV !== "production";
  var webpack = require("webpack");
  var path = require("path");
  
  module.exports = {
    devtool: debug ? "inline-sourcemap" : null,
    entry: {
      app: ["./src/app.js"]
    },
  
    module: {
      loaders: [
        {
          test: /\.js?$/,
          exclude: /(node_modules|bower_components)/,
          loader: 'babel',
          query: {
            plugins: [
              'transform-decorators-legacy'
            ],
            presets: ['react', 'es2015', 'stage-0']
          }
        },
        {
          test: /\.css$/,
          loader: "style-loader!css-loader"
        }
      ]
    },
  
    output: {
      path: path.resolve(__dirname, "public"),
      filename: "app.min.js"
    },
  
    plugins: debug ? [] : [
      new webpack.optimize.DedupePlugin(),
      new webpack.optimize.OccurenceOrderPlugin(),
      new webpack.optimize.UglifyJsPlugin({ mangle: false, sourcemap: false })
    ]
  };
  