Next.js Discord

Discord Forum

SPA (single application page) - one html and one js

Unanswered
Giant panda posted this in #help-forum
Open in Discord
Giant pandaOP
Hello,

I wanted to test both vite and nextjs and I only compiled (I'm using typescript) come really simple code (a simple page) with and made a comparison between next and vite.

I noticed vite created a single js and a single html (which is what I wish to have) whereas next created "chunks" (I couldn't find anything about this subject).

In the official documentation of vite, SPA (single page application) is mentioned with https://nextjs.org/docs/app/building-your-application/deploying/static-exports#configuration.

PS: Please take into consideration that I am just starting to learn web technologies. I know nothing about this domain.

Thank you very much in advance for any help

0 Replies