mpvue 2.0.6 mpvue-loader@2.0.0 没有生成app.json, sitemap.json 等文件
EchoAGI opened this issue · comments
[扼要问题描述]
mpvue 2.0.6 mpvue-loader@2.0.0 没有生成app.json, sitemap.json 等文件
**mpvue 版本号:
[mpvue@2.0.6]
并且没有 生成 小程序插件 的模版
这个不维护了,就项目手动处理一下吧
- 在 dist 目录建一个 sitemap.json 写好内容
- 打开 package.json,找到 build 命令
node build/build.js wx
改成node build/build.js wx && cp -f dist/sitemap.json dist/wx/sitemap.json
然后 run build 的时候,自动拷贝文件过去。
本来这个 sitemap.json 没有也没关系,但最新的微信开发工具没有这个文件不让上传,只能这么搞了