var webpack = require('webpack');
var development = process.env.NODE_ENV !== "production";

var PATHS = {
  BUILD: __dirname + '/dist',
  APP: __dirname + '/src'
}

module.exports = {
  context: __dirname,
  devtool: development ? "inline-sourcemap" : null,
  entry: PATHS.APP + "/script.jsx",
  output: {
    path: PATHS.BUILD,
    filename: "scripts.js"
  },
  module : {
    loaders : [
      {
        test : /\.jsx?/,
        include : PATHS.APP,
        loader : 'babel'
      }
    ]
  },
  plugins: development ? [] : [
    new webpack.optimize.DedupePlugin(),
    new webpack.optimize.OccurenceOrderPlugin(),
    new webpack.optimize.UglifyJsPlugin({ mangle: false, sourcemap: false }),
  ],
};
@@ -88,51 +88,109 @@
 n%22;%0A
-%0Avar PATHS = %7B%0A  BUILD: __dirname + '/dist'
+var path = require('path');%0A%0Avar PATHS = %7B%0A  BUILD: path.join(__dirname, '..', 'example_site/public')
 ,%0A  

Configure webpack to spit `scripts.js` into the "example_site".