Sencha extjs 6 프로젝트를 설정하려고합니다. 현대적이고 고전적인 패키지를 모두 사용하고 싶습니다. 이 설정을 따르고 있는데 tutorial이지만 매우 도움이되지 않습니다.Sencha extjs 프로젝트 설정
내 이해가 정확하다면 데스크탑과 모바일 사이트로 모두 액세스 할 수있는 앱을 하나 가질 수 있어야합니다. 이것은 위대하고 컴파일되지 않은 경로 (myapp는 root/sencha 폴더에 있음) mysite.com/sencha에서 작동합니다. 그러나 루트 사이트에 액세스하면 app.js 빌드 대신 컴파일되지 않은 경로가 제공됩니다.
내 인덱스 페이지는 root/layouts/index.html
입니다. 내 extjs 앱은 root/sencha
입니다. 내 app.json의
관련 부분은 다음과 같습니다 pagep으로
...
"indexHtmlPath": "../layouts/index.html",
"production": {
"output": {
"page": {
"path": "../../../../layouts/index.html",
"enable": false
},
"appCache": {
"enable": true,
"path": "cache.appcache"
},
"microloader": {
"path": "microloader.js",
"embed": false,
"enable": true
}
},
"loader": {
"cache": "${build.timestamp}"
},
"cache": {
"enable": true
},
"compressor": {
"type": "yui"
}
},
"output": {
"base": "${workspace.build.dir}/${build.environment}/${app.name}",
"page": "index.html",
"manifest": "${build.id}.json",
"js": "${build.id}/app.js",
"appCache": {
"enable": false
},
"resources": {
"path": "${build.id}/resources",
"shared": "resources"
}
},
...
약간 혼란 스럽지만'sencha app build'를 실행하고 빌드 폴더의 내용을 웹 서버에 복사하십시오. – pagep