In the nightwatch.json configuration file, you should be able to set a proxy parameter in the desiredCapabilities:

"chrome" : {
  "desiredCapabilities": {
    "browserName": "chrome",
    "javascriptEnabled": true,
    "acceptSslCerts": true,
    "chromeOptions" : {
      "args" : [
        "disable-extensions",
        "start-maximized"
      ]
    },
    "proxy": {
      "proxyType": "manual",
      "httpProxy": "your_proxy:8080"
    }
  }
},


Check this doc: https://code.google.com/p/selenium/wiki/JsonWireProtocol#Proxy_JSON_Object

Set proxy in nightwatch.js
I have a menu that I've created using jquery that "pops-up" on certain button mouse-overs.

it has a LOT of options and sub-menu options and I'd like to put it into a separate file so that it only needs to be downloaded once and all of the html markup and text doesn't need to be re-downloaded every time a user hits a sub page on my site.

I was toying with the idea of using the jquery template engine but couldn't quite wrap my head around the best way to work that.  This isn't a template after all, but a static menu.

I'm pretty sure I can't put it in a JS file because it's not script per se, it's actual html markup (mostly tables).

Any ideas?
