I am dynamically generating HTML files, which I use for deployment.
This is what I use to make these HTML file:
function writeFile() Dim objStream Set objStream = CreateObject("ADODB.Stream") objStream.CharSet = "utf-8" objStream.Open objStream.WriteText content objStream.SaveToFile absoluteFileLocationAndName, 2 Set objStream = Nothing end function
What are my options to obtain, in addition, a pre-compressed version?
I am not sure if I need to go as far as implementing https://github.com/AnderssonPeter/CompressedStaticFiles ... but it would bring the benefit of adding CSS, and JS file compression. Side Note: for CSS and JS compression I plan on using Notepad++ run program on save to automatically minify and then compress minified file.
Similar post Tool to create pre-compressed [Brotli] files
As an alternative I found PeaZip which allows brotli compression on files, but would need to find a way to integrate that.
I am using MirrorFolder Cloud Edition to deploy my files, FTP synchronized in real-time. MirrorFolder allows for pre- and post commands to be run during execute. I suppose at that point I could have PeaZip run a script to create a pre-compressed brotli version of the file.
Thank you for your suggestions and ideas on any other tools I could use to do this.