简体   繁体   中英

Electron project : open index.html or npm start, what changes?

When I run npm start, it opens a GUI electron and it works fine.

On the other hand, When I open index.html, it opens chrome and it seems that not all sources are loaded.

What is the difference ?

Electron 提供了大量 API 和 Node.js 后端,如果您在常规浏览器中打开 HTML 文档,则无法获得这些后端。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM