Extra Services

Web tunneling

Headstart makes it possible to expose your local web server to the internet. This way you can share whatever you're building with the world, without the need for fiddling with a server or FTP. To use it, add the --tunnel flag to your build instruction. You'll see a public access url being written out in your command line window. Example usage:

headstart build --serve --tunnel

Or you can use the shorthand version:

hs build --s --t

You can also try reserving a custom subdomain for your tunnel (if it is available at that time), by assigning a value to the tunnel flag. For example to get http://cool-project.localtunnel.me, run:

hs build --s --t=cool-project

This is made possible through BrowserSync by Shane Osbourne.

Note: This works great for static projects, but might not work as expected when dealing with an integrated back-end. Please report any issues you are having, as some might be easy to resolve.

Google Pagespeed Insights

To make sure your project is performing at its best, it is advised to run your files through Google's Pagespeed Insights to check if there are any optimizations to be made.

Headstart comes with a command line version of their service, which you can use by appending the --psi flag to your build instructions. By default, this will run your served files against the desktop strategy, but you can change this by adding --strategy=mobile as an extra flag. Example usage:

headstart build --serve --psi --strategy=mobile

Next step: A closer look at the boilerplate