0

I am using Sencha Architect to make a few web apps. After each build I am presented with an 'app.js' among other files. The 'app.js' of each build has 90% of its content in common with another app.

Is there a way to extract that information and leave it in a common directory on the app server to then be imported dynamically?

  1. This would allow this large file to be cached by the server and browsers.
  2. The load time of each app will decrease.
  3. I will use less space on my server.

1 Answer 1

1

Yes... however this is far easier to accomplish without Sencha Architect.

Sencha Cmd has long had the concept of packages, and these are exactly the sort of thing you're asking for.

Sencha Architect does have the concepts of app templates as well as extensions -- but they don't really give you the single cached JS file that you're looking for.

Sencha Cmd also has some deep utilities for manually compiling a shared resource, but honestly the "package" is ultimately what you'd want. Sadly I don't know how compatible they are with Architect.

Sign up to request clarification or add additional context in comments.

2 Comments

Is this doable via Sencha command, I don't mind doing the builds on the command line if you could point me to how to do them
It's all located at docs.sencha.com, though without diving deeply into your code I don't know specifically where to point you. The link to "packages" should answer the majority of your questions, but the compiler might also be helpful.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.