Hey guys I am currently working on a simple NextJS project, with Typescript, that displays a list of lectures and their details. I use tailwindcss for most of my styles to improve performance and Chakra-UI for some parts of my NavigationBar. In Addition, I use DaisyUI for its themes (dark and light mode).
For some reason the compilation time of my project is pretty high, for example, while running npm run dev the compilation time for a page is about ~5 seconds according to the terminal. For the user, in this case, me, it sometimes takes around 9 seconds to load a simple page, that only shows a staticly inserted text. (route: /secureAuth, branch: next-auth-setup) Below I will provide some screenshots of both the terminal-logs and the page in question.
My question is whether this compilation time is considered to be normal and or how to lower the compilation to increase performance?
(Side question in case someone has done this, can I only use the themes provided by daisyUI, and exclude its components to reduce the amount of modules that are compiled?)
Repository / Codebase: https://github.com/Marty-Byrde/PublicServices
Thanks in advance
Contribute to Marty-Byrde/PublicServices development by creating an account on GitHub.