Ola
I'm running a post processing script based on Kiffi's post processor
My challenge is that when running my site against website profilers, they recommend that I use gzip for the resources. This means the images, css and js files need to be gzipped for better performance of the website.
The GzipGeneratedWebsite I assume works before any post processing takes place. Is it possible to have this feature to be activated after any post processing is done?
Assumptions:
My app is recorded as having a lot of css and js files in it. Granted. This includes all the css and js files from my BANano based lib that I use for creating my BANano based apps.
After BANano.Build, my post processor ensures that ONLY the css and js files that are used by my project are included in my project and all other ones are removed from the final build. These css files are consolidated into 1 single css and this is the only one added on BANano.Header before the post processing.
The catch though is, if .UseServiceWorker is turned on, all the css and js files added on the Files tab are included. This is irrespective of the post process exercise.
The js files so far are rather tricky as some just break my code if merged into a single file, so I only leave these for compression by the post processor.
So, without having to be manually removing files from the files tab (directly from my banano library), I need to have a way to post process the service worker file css and js list, post process gzip resources etc etc. Phew!
Ta!
I'm running a post processing script based on Kiffi's post processor
My challenge is that when running my site against website profilers, they recommend that I use gzip for the resources. This means the images, css and js files need to be gzipped for better performance of the website.
The GzipGeneratedWebsite I assume works before any post processing takes place. Is it possible to have this feature to be activated after any post processing is done?
Assumptions:
My app is recorded as having a lot of css and js files in it. Granted. This includes all the css and js files from my BANano based lib that I use for creating my BANano based apps.
After BANano.Build, my post processor ensures that ONLY the css and js files that are used by my project are included in my project and all other ones are removed from the final build. These css files are consolidated into 1 single css and this is the only one added on BANano.Header before the post processing.
The catch though is, if .UseServiceWorker is turned on, all the css and js files added on the Files tab are included. This is irrespective of the post process exercise.
The js files so far are rather tricky as some just break my code if merged into a single file, so I only leave these for compression by the post processor.
So, without having to be manually removing files from the files tab (directly from my banano library), I need to have a way to post process the service worker file css and js list, post process gzip resources etc etc. Phew!
Ta!
Last edited: