前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家。点击跳转到教程。
这个写法还是第一次见到,也不知道是否还有什么环境配置,记录一下,或许以后什么时候也可以参考:
1. 项目文件结构:
2. json 引入方式:
<link rel="manifest" href="<%= htmlWebpackPlugin.files.publicPath %>static/manifest.json">
3. json 定义:
{"name": "lbd","short_name": "lbd","icons": [{"src": "/static/img/icons/android-chrome-192x192.png","sizes": "192x192","type": "image/png"},{"src": "/static/img/icons/android-chrome-512x512.png","sizes": "512x512","type": "image/png"}],"start_url": "/index.html","display": "standalone","background_color": "#000000","theme_color": "#4DBA87"
}