在生产环境中为用户在本地创建一个service worker 来缓存资源到本地,提升应用的访问速度
Notice the use of %PUBLIC_URL% in the tags above. It will be replaced with the URL of the
public
folder during the build. Only files inside thepublic
folder can be referenced from the HTML. Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by runningnpm run build
.
https://web.dev/add-manifest/