I can't find a way to specify a path at which to serve the app at. Instead of http://localhost:9000 I need it served at http://localhost:9000/something, because I'm using a reverse proxy on a shared server.
I found a relevant stackoverflow question here from a year ago without an accepted answer: http://stackoverflow.com/questions/30370753/gulp-browsersync-serve-at-path
Is this possible by now?
+1
This is totally possible by configuring the server options with a route. Basically this:
server: {
baseDir: '-',
routes: {
'/arbitrary/subpath': '.'
}
}
I answered the Stack Overflow question @kraf linked with more detail: http://stackoverflow.com/a/41494102/503463
Here's a complete functional Gist: https://gist.github.com/joemaller/0254b34b88cfc6a9a665025c722891b5
thanks @joemaller - care to contribute an example ?
Most helpful comment
This is totally possible by configuring the
serveroptions with a route. Basically this:I answered the Stack Overflow question @kraf linked with more detail: http://stackoverflow.com/a/41494102/503463
Here's a complete functional Gist: https://gist.github.com/joemaller/0254b34b88cfc6a9a665025c722891b5