문제

I am using "pub serve" to serve my Dart web app. Pub is running at http://localhost:8080/.

I can access my app at http://localhost:8080/index.html which loads the index.html file in the web directory in my project.

I would like to be able to load the same index.html directly from http://locahost:8080/. How do I do accomplish this task?

도움이 되었습니까?

해결책

This is probably what you are looking for:

"pub serve" should support index.html and directory listing

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top