broccolijs / broccoli

Browser compilation library – an asset pipeline for applications that run in the browser
https://broccoli.build
MIT License
3.33k stars 217 forks source link

feat: SPA routing fallback support #491

Open lifeart opened 2 years ago

lifeart commented 2 years ago

resolves: https://github.com/broccolijs/broccoli/issues/425

broccoli server able to detect index.html files on path requests like

/foo -> /foo/index.html and return it.

But, If we use livereload and js-based app navigation, broccoli don't drill down to root index.html for requests like:

/foo/bar

-> current lookup: foo/bar/index.html, 404

-> expected lookup: /foo/bar/index.html, /foo/index.html, index.html, 404