Better out of the box preview for plain HTML+CSS+JS site
I cloned my static HTML+CSS+JS site.
On a local machine, I could literally double click index.html and get an instant preview. If I wanted to be a bit more fancy, I'd spin up npx serve
I expected IDX to display a small "preview" icon at the top right when opening an HTML file. It claims support for web, but isn't able to preview the most basic web page out of the box.
9
votes
![](https://secure.gravatar.com/avatar/e59fab6ffa4743b3fe636dcbfe08074a?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Doğukan Büyükkaya commented
I'm having the same problem.
You can solve the problem by installing the plugin called "live server".