I enabled automatic version numbering in my PWA app in Delphi project options.
When compiling, the created js is incremented as expected, but the line in the index.html referencing the js remains unchanged, such that the app woun't be started in the browser.
In addition, when the compiler creates a new js with new version number, the old one does not get deleted from the output folder, which causes unneccessary server uploads.
Yes, as much as I can. I always Windows-deinstall Web Core and also delete all remaining traces before installing a new version. For testing purposes, I have also installed the VSC version in parallel, if that information is of any value.
I can confirm that this works Ok on a new PWA project.
Any Yes to both of your questions 1 and 2.
So, how can versioning be reenabled in my project. Or alternatively, what steps do I need to do to create a new PWA project from an existing one?
And is there any way to automatically delete any old .js-files with old version numbers from the output directory (other than doing this manually)? Or even better, to delete the whole output directory before each compile?
We are not aware of an issue with this
Can you send such problematic project so we can investigate?
There is at this moment not a setting to automatically delete files in the output folder.
We are a bit reluctant to add code that would delete files there and risk to have deleted something unwantedly for someone.
TWebMessageDlg - How to prevent element.styles when there are CSS classes set
The code related to the first 2 problems you will find in TMainForm.SetCustomerLogo followed by the timer (!!) called TMainForm.ImgClientLogoLoaded, where I desperately try to change the size of the image, with no luck by now.
For the TWebMessageDlg issue, please see Unit Tools.pas Function MessageDlgEx().
With regards to deleting files in the output folder, I fully understand your point. So maybe it would be a great idea if there was a way to add to the project options two settings for batchfiles that are executed before and after the compiler run. In my case, the BEFORE batch would clear the output directory and the AFTER batch would FTP the output to the server. At the moment, I do this manually…
Oops, my fault, must have happend while hunting other problems.
Feature request: Compiler error message when $(ProjectName) is missing.
Sorry for wasting your time!