Open filipvdb opened 2 months ago
One thing to watch out for when externalizing css and js files is browser caching. This is similar to the issue faced when the team was flashing the firmware and clear cache or ctrl-f5 refresh the browser.
To solve this issue, a build step using npm and github actions can be run to automatically create a dist
folder and publish this to the repository. Publishing to the live site would involve copying the the dist folder. In addition to "building" a dist version of the site, other things like javascript or css linting can be introduced.
Move the CSS code out of the main HTML page and use it for multiple pages