intermittech / quinled-web-installer

1 stars 0 forks source link

Optimize CSS usage and HTML generation for better management #4

Open filipvdb opened 2 months ago

filipvdb commented 2 months ago

Move the CSS code out of the main HTML page and use it for multiple pages

pbolduc commented 1 month 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.