Rewriting base href to support proxying

Change-Id: I5c11e1908f095eded3326ac284a9775590e9b210
diff --git a/conf/webpack-dist.conf.js b/conf/webpack-dist.conf.js
index a59ff69..21f8ce3 100644
--- a/conf/webpack-dist.conf.js
+++ b/conf/webpack-dist.conf.js
@@ -6,6 +6,7 @@
 const ExtractTextPlugin = require('extract-text-webpack-plugin');
 const pkg = require('../package.json');
 const autoprefixer = require('autoprefixer');
+const BaseHrefWebpackPlugin = require('base-href-webpack-plugin').BaseHrefWebpackPlugin;
 
 module.exports = {
   module: {
@@ -60,6 +61,9 @@
     new webpack.ProvidePlugin({
       $: "jquery",
       jQuery: "jquery"
+    }),
+    new BaseHrefWebpackPlugin({
+      baseHref: '/spa/'
     })
   ],
   postcss: () => [autoprefixer],
diff --git a/package.json b/package.json
index 955c539..fefda25 100644
--- a/package.json
+++ b/package.json
@@ -21,6 +21,7 @@
     "babel-eslint": "^6.0.2",
     "babel-loader": "^6.2.0",
     "babel-plugin-istanbul": "^2.0.1",
+    "base-href-webpack-plugin": "^1.0.0",
     "browser-sync": "^2.9.11",
     "browser-sync-spa": "^1.0.3",
     "css-loader": "^0.23.1",