In order to support Single Page Applications Browsersync can be used with connect-history-api-fallback module as middleware.
connect-history-api-fallback
See example below:
historyApiFallback = require('connect-history-api-fallback') server: { baseDir: "...", middleware: [ historyApiFallback() ] }
With this configuration every URL will point to the home page of the application.
Based on https://github.com/BrowserSync/browser-sync/issues/204
There was an error while loading. Please reload this page.