How to tell gulp-connect to use a specific base URL?

509 Views Asked by At

Can I tell gulp-connect to use a specific base URL that does not relate to the folder structure it is serving from? I am trying to serve the app directly from the src folder and therefor set gulp-connect's root to 'src'. The src folder contains the index.html. When I browse to "localhost:< port >". It shows the index.html, but because of internal use of a JavaScriptvariable set to the production base URL, the internal routing and script loading does not work. That's why I want to tell gulp-connect, to behave as If the production base URL would be left out.

For example: Browsing to 'localhost:8080/MyApp/index.html' should basically do the same as browsing to 'localhost:8080/index.html'.

0

There are 0 best solutions below