可以将build文件夹中的index.html文件复制到任何本地文件夹中,并使用浏览器打开该文件,即可作为独立的网页使用,无需服务器支持。
示例代码: 假设build文件夹中的index.html文件路径为:/path/to/build/index.html
则在终端中进入该文件夹并复制一份到本地某文件夹中:
cd /path/to/build
cp index.html /path/to/local/folder
然后使用浏览器打开该文件:
firefox /path/to/local/folder/index.html
其中firefox可根据系统和浏览器不同而变化。