In our ExtJS 6 packages we are using some third party libs for date manipulation and so on. Now when we build it we want them to be compiled/bundled/minified into the main js
file from the application.
How can this be done? Right now he only loads every resource on its own.
When you define the following in your package.json
the assets will be copied at least:
"resources": [{
"path": "${package.dir}/resources",
"output": "shared"
}]
I was reading somewhere that the output:shared
is required that the cmd is copying on compile.
Later we reference them in the "js" section:
"js": [{
"path": "resources/my/resource.js",
"bundle": true
}, {
"path": "resources/m/resurce02.js",
"includeInBundle": true
}]
I would expect that extjs
is now building one compiled js
resource which includes both js
resources.
The includeInBundle
should be responsible for that. But it seems that the application which uses the package is never "informed" about this resources. In the past i was adding them in the application js
resources manually again but I doubt that this is the correct behaviour.
How can extra libs be bundled within a package. Who can shed some light on that? Anyone from sencha here?
Thanks in advance. Robert