I am building an application with a Google App Script project that will be entirely housed within Google Sheets. I am using different tabs of a sheet for data storage and building HTML-based dialogs and sidebars to navigate the application. I am not going to deploy this as a library or web app, and I am not planning on utilizing any other web server of my own creation.
It is going well so far, but at this point I would like to added embedded resources, e.g. images that can be used as backgrounds of web pages. I can add .gs
files and .html
files fine to cover server-side coding, client-side coding, and styles, but I do not know of a way to add other files to the project. If this were a conventional web-based development process, I imagine I'd have something like an "img" folder at the root of my server entry point -- that's the functionality I am looking for in a GAS project.
Is it possible to add embedded resource files to a GAS project? Alternately, is there some way I can encode binary resources in an HTML file and then decode as needed to appear as usable content? I can certainly build adequate data-entry forms without additional resources, but things are going to look pretty spartan.
I did find a previous question that mentioned workarounds like placing resources in Google Drive alongside the Google Sheet w/ script, but that was from 4 years ago. Was wondering if there was a better/preferred methodology now that I am simply missing. That other question can be viewed here: