How to set up a static index.html page?So that I can run it if I click my index.html on my computer


#1

How to set up a static index.html page?So that I can run it if I click my index.html on my computer.
Now I click my index.html that I can’t run it directly.Thx:)


#2

I want to run it directly which like this.


#3

I am sorry to have raised so many low-level questions, because I am not a professional front end, and I have not received formal programming education. But thank you for your kind help!


#4

Unfortunately you can’t as the engine assumes that you are running from a server when the app requests assets/files.


#5

:scream::scream::scream::scream::scream::scream::scream::scream:


#6

Is there really no way?
:joy:


#7

Thank you yaustar:tired_face:


#8

AFAIK, no. I think there is a some code where it loads the assets that only works if it’s hosted on a server.


#9

What’s the reason for wanting to do this?


#10

@MaxmilianLiu Would it be applicable to have an executable .exe file? Have a look HERE


#11

I want to embed this packaged file into the APP, so that it can be run directly even offline. This saves time, because the package is still a bit large, and now it is in the exploration stage. I think there should be a way to work. I Let me explore it again, anyway, thank you very much.


#12

I want to embed this packaged file into the APP, so that it can be run directly even offline. This saves time, because the package is still a bit large, and now it is in the exploration stage. I think there should be a way to work. I Let me explore it again, anyway, thank you very much.:slight_smile:


#13

Embedded in the APP app for localization


#15

@will I need your help…:slight_smile:


#16

What ‘APP’? Is this a different application altogether? Or is the PlayCanvas the ‘APP’?

If you want to demo it locally, you could run a local server.


#17

Try opening it with Microsoft Edge as your browser. Also, on Apple Tablets the GoodReader app will load and run a Playcanvas project.

You might also try so-called “Kiosk Browsers.”


#18

if you are opening a local url from a webview, then you should start a local http server serving those files.


#19

Like webview in my app


#20

Oh,thx:)I will try it


#21

:grinning:Thx,I got it!