Closed madsnedergaard closed 2 years ago
Not sure if this is helpful or not but the HtmlWebpackPlugin can (and should) be used for generating the index.html, it also supports ejs templates so we can mostly use the current template without huge changes, it's just the facebook specific stuff that will need to have a solution.
We should also change how we handle the page title as it currently using the index.ejs to be generated, we should switch this to a static electricityMap
title and then update it using client side JS. (this can be done already if we want)
Let's try replacing this issue with a Project: https://github.com/orgs/electricitymap/projects/29/ :)
Description
The server complicates the build and local development, while impacting performance and SEO. It mainly exists because of localisation, which should/could be improved and replaced on client-side anyway :)
See further discussions here: https://github.com/electricitymap/electricitymap-contrib/issues/3262
I've started the work here, but realised there's several areas needed to be addressed here. See list below.
Tasks in this
clientVersion
usage: #3838