I work on a Google Apps Script project with a *.gs-file and a *.html-file. I work in the browser on script.google.com
, so all these files are stored in my Google account. In the html file I have added some JavaScript in a <script>
-Tag as as well some CSS in a <style>
-tag.
I would like to separate the JavaScript and the CSS parts to separate files. They should also be stored in my Google account, and directly linked and easy accessible in my project.
When I click on File --> New the only options for adding files to the project are Google Apps Script or HTML. So it seems that this is not natively supported. But I would also be happy with a workaround, say to add some HTML file, write the JavaScript into that and linking it somehow.
My goal is just to have a better overview over the project, and in my main.html I do not want to get distracted by JavaScript or CSS.
Similar questions have been asked before here, but it seems that they are all about linking external JavaScript files, which is not what I want.