我有一个具有以下结构的 ExtJS 包:
PackageA/
classic/
resrouces/
file.json
classic_resource.json
resources/
file.json
resource.json
当我在需要 packageA 的生产模式下构建应用程序时,在构建目录中我看到以下内容:
./build/production/MyApp/classic/resources/PackageA/file.json
./build/production/MyApp/classic/resources/PackageA/classic_resource.json
./build/production/MyApp/classic/resources/PackageA/resource.json
看起来共享包资源和特定工具包(经典)都被复制到同一个目录(./MyApp/classic/resources/PackageA/),如果同一个文件已经存在,它将被简单地覆盖(file.json )。
但是,在我的情况下,classic/resources/file.json 和 resources/file.json 具有不同的内容,我需要将它们都保留在构建中。
我怎样才能做到这一点?
[编辑]
应用程序.json
"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"
},
"framework": {
"path": "${build.id}/framework.js",
"enable": true
}
},
"resources": [
{
"path": "resources",
"output": "shared"
},
{
"path": "${toolkit.name}/resources"
},
{
"path": "${build.id}/resources"
}
],
包.json
"output": "${package.dir}/build",
"resource": {
"paths": [
"${package.dir}/resources",
"${package.dir}/${toolkit.name}/resources"
]
},