question

ariellarias avatar image
ariellarias asked

Nested/Library/include javascript on Server Api

Hello,

I was wondering if there is any way of include/import javascript files in the cloudscript.js main one, in order to avoid having a giant monolithic cloudscript.js

Thanks for the answer

CloudScript
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Yes, our GitHub integration automatically concatenates all the JS files in the master branch of the repo you point it to, so that you can manage your Cloud Script as multiple files.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ariellarias avatar image ariellarias commented ·

Thanks for the prompt answer!

That includes subfolders or a specific folder in the repo? (like the same which contains cloudscript.js or something like that)

0 Likes 0 ·
brendan avatar image brendan ariellarias commented ·

Good point - to be clear, it only pulls from .js files that are in the root of the repo.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.