This is an example of hosting vector tiles with custom style and a local copy of MapBox GL JS library on your own server.
Fast CDN hosting for content of this repo with CORS headers is at:
and the standard github pages (withou CORS):
THe map styles as well as usage description is available in the repo:
The attached style (embeded in the JavaScript code of index.html) is handmade based on the instructions at: https://www.mapbox.com/mapbox-gl-style-spec/