
var ContextReplacementPlugin = require("webpack/lib/ContextReplacementPlugin");

module.exports = {
  entry: './index.js',
  output: {
    filename: './build/bundle.js',
    chunkFilename: "./build/[id].bundle.js"
  },
  node: {
    fs: "empty"
  },
  debug: true,
  bail: true,
  module: {
    loaders: [
      { test: /\.css$/, loader: 'style-loader!css-loader' },
      { test: /\.json$/, loader: 'json-loader' },
      // jquery-ui loads some images
      { test: /\.(jpg|png|gif)$/, loader: "file" },
      // required to load font-awesome
      { test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&minetype=application/font-woff" },
      { test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&minetype=application/font-woff" },
      { test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&minetype=application/octet-stream" },
      { test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: "file" },
      { test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&minetype=image/svg+xml" }
    ]
  },
  externals: {
      "base/js/namespace": "base/js/namespace",
      "notebook/js/outputarea": "notebook/js/outputarea",
      "services/kernels/comm": "services/kernels/comm"
  },
  plugins: [
    new ContextReplacementPlugin(
      /codemirror\/mode.*$/,
      /codemirror\/mode.*\.js$/
    )
  ]
}

@@ -137,27 +137,51 @@
     
-filename: './build/
+path: __dirname + %22/build%22,%0A    filename: %22
 bund
@@ -189,53 +189,36 @@
 e.js
-'
+%22
 ,%0A    
-chunkFilename: %22./build/%5Bid%5D.bundle.js
+publicPath: %22./build/
 %22%0A  

Handle the static files