版權聲明:本文為部落客原創文章,未經部落客允許不得轉載。 https://blog.csdn.net/inforstack/article/details/60139193
在項目的根目錄有app.json檔案,需要修改其中output的base屬性,具體如下:
"output": {
//"base": "${ext.dir}/build/examples/admin-dashboard/${build.id}",
"base":"${workspace.build.dir}/${build.environment}/${app.name}/${build.id}",
"page": "../index.html",
"manifest": "../${build.id}.json",
"appCache": {
"enable": false
}
删除“${ext.dir}”目錄,在根目錄運作重新打包,指令如下:
sencha app build