V
V
vasIvas2015-11-25 15:13:09
JavaScript
vasIvas, 2015-11-25 15:13:09

How to set up routing in browser-sync?

How to set up routing in browser-sync so that it handles paths like domain.com/app/:name/:id ?
It seems that there are only two ways, in routes and in middleware, but the first one does not work, and the second one is not clear at all, in res there is no send, no sendFile ... You need to write localhost: 8080 / app / 25 in the address bar like this , not localhost:8080/app?=25

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kravchenko, 2015-11-25
@mydearfriend

browsersync can accept connect-modrewrite as a middleware, but I couldn't rewrite pagename to pagename.html. If you manage to use it, please unsubscribe.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question