build: fix dev-server running in snippet mode (#18679)
build: fix dev-server running in snippet mode (#18679)

Browsersync has 3 possible modes. `snippet`, `proxy` and `server`. We
currently run with `snippet` even though we actually want to serve with
the live-reloading script being injected automatically.

In order to ensure that Browsersync runs in the `server` mode and
properly prints the URL to the http server, we re-enable the
`server` option that has been disabled in the past for security reasons.
The logic to prevent directory traversal still remains, and we also
explicitly disable directory listing (even though we have manual request
interception).
josephperrott/material2,mmalerba/material2,DevVersion/material2,DevVersion/material2,josephperrott/material2,crisbeto/material2,angular/components,crisbeto/material2,Jefiozie/material2,crisbeto/material2,andrewseguin/material2,Jefiozie/material2,Jefiozie/material2,josephperrott/material2,angular/components,angular/components,andrewseguin/material2,DevVersion/material2,mmalerba/material2,josephperrott/material2,Jefiozie/material2,crisbeto/material2,andrewseguin/material2,mmalerba/material2,Jefiozie/material2,DevVersion/material2,mmalerba/material2,andrewseguin/material2,angular/components,josephperrott/material2,mmalerba/material2,andrewseguin/material2,DevVersion/material2