pas2js doesn't handle RES&RC files correctly
When using
{$R *.res}
// alternatively: {$R *.rc}
the whole RES/RC files is added as one. Instead the particular resources within the resource file should be added separately with their names.
E.g. this is needed to correctly handle the application icon:
- Set an application icon in Lazarus IDE project options dialog.
- You see that the RES file is created and the
{$R *.res}
line is added to the project. - The MAINICON resource cannot be accessed (e.g. to create the favicon dynamically).