lily-white / daily-work

0 stars 0 forks source link

8.小程序分包 #8

Open lily-white opened 6 years ago

lily-white commented 6 years ago

1.新建subPages/pages,把除index外之外的文件移到该文件夹下 2.app.json里加入subPackages "subPackages": [ { "root": "subPages", "pages": [ "pages/newsdetail/newsdetail", "pages/save/save" ] } ] 3.引用路径更改为'../../subPages/pages/xx' 4.分包内资源加入到subPackages