let BrowserSyncPlugin = require('browser-sync-webpack-plugin');

module.exports = {
  entry: ['./src/app.js'],
  output: {
    filename: 'invertedindex.js',
    path: __dirname + '/public/scripts'
  },
  devServer: {
    contentBase: './public',
    hot: true
  },
  plugins: [
    new BrowserSyncPlugin(
      {
        // browse to http://localhost:3001/ during development 
        host: 'localhost',
        port: 3001,
        server: {
          baseDir: ['./public']
        },
      },
      // plugin options 
      {
        reload: true
      }
    )
  ]
};
@@ -377,16 +377,19 @@
 %0A       
+ //
  host: '
@@ -412,18 +412,100 @@
     
-port: 3001
+host: 'https://inverted-index-app.herokuapp.com/',%0A        // port: 3001,%0A        port: 5000
 ,%0A  

update webpack config file to enable deployment to heroku. fixes #1022