Closed EmileRolley closed 8 months ago
Am I correct to understand that now the main landing page is only 700kb
and that you only load the 6 MB source code of the housing benefits when needed?
As of now you hardcoded in this git repo the contents of each version of the dependent packages we use. Is there a way with npm/other JS packaging tools to use multiple versions of a single package so that we don't have to hardcode the contents of the versions of the packages?
Am I correct to understand that now the main landing page is only
700kb
and that you only load the 6 MB source code of the housing benefits when needed?
Yep :+1:
As of now you hardcoded in this git repo the contents of each version of the dependent packages we use. Is there a way with npm/other JS packaging tools to use multiple versions of a single package so that we don't have to hardcode the contents of the versions of the packages?
I copied past to quickly test the dynamic import but I can look to see if it's possible yes!
It seems possible with aliases
but I wonder how far it can be automated :thinking:
Mh.. this looks like an issue where @garronej expertise could be of some help 🤞🏻
Before:![Screenshot from 2023-11-15 15-12-58](https://github.com/CatalaLang/catala-dsfr/assets/44124798/23175460-de4e-4474-a9e4-3706a7817c81)
Now:![image](https://github.com/CatalaLang/catala-dsfr/assets/44124798/380bf7f3-c16b-4410-98ac-73b992f67ec2)
Tasks
french-law
french-law
version to its corresponding asset versioncatala-web-assets
orfrench-law
catala-explain