Can Google Package App use external directories during packing? -
I am writing several packaged apps that run independently but share a lot of code. For example, All of them use "library.js" I have only a copy of library.js, so any changes in this will be used by all new packed apps.
To package my app, it seems that everyone has a copy of library.js in their own directory structure, while it would be nice to have a single master copy in all other directories, all of which I'm currently making a manual check to make sure all files are up-to-date before packing, and I'm writing some code to do the check automatically, but it seems that a A work-around
The Google Packed App uses a JS code in the external library directory, or all the code must be under the root directory of the app (i.e., it is necessary to copy it from the external directory) when packing?
Have you tried to provide a URL, that is, to access the jsspt file in your .js format Host on an accessible location and then provide the .js file url in all your app code. The next time you want to change, you just have to. The Js file has to be updated.
Comments
Post a Comment