Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuxt with multiple websites. Slow development because of compiling. #8102

Closed
thingsneverchange opened this issue Sep 22, 2020 · 1 comment
Closed

Comments

@thingsneverchange
Copy link

thingsneverchange commented Sep 22, 2020

Version : Up-to-date version. 2.14.6 (Nuxt)
What I am expecting : Faster development with lots of pages, and components.

What is actually happeening:

I am using Nuxt to run multiple websites with one server. Not sure why no one mentions a big app built by one Nuxt server, but I have 100+ components 200+ pages. Components and pages include logos, SVGs, editors (Qulli & Code mirror), custom helpers, admin pages, and etc... I may, and will add more to this pile of assets as I am willing to open another website on this Nuxt app.

With all those resources, I have a 20mb+ vendor script that loads on my dev server. Not to mention the compile is slow, but the load time is slow too. The initial 'run dev' takes about 40s /client & 5s /server to compile the files, but when you save the code, and the hot reloads runs it takes 3-4s for client, and 1-2s for server.( I tested a basic .vue page without anything in template.) I did some tunings to reduce the vender script, and the size reduced to 7mb, but the hot reload compile is still slow (babel-loader seems to take long during the hot reload compile).

I am not exactly sure if it was the same thing when I started Nuxt, and added the first page to the app, but I remember it was fairly slow compared to Vue cli. Is this expected? Would there be anything I can do to reduce the time, so I can develop as fast as it allows?

Thanks for reading!
Just so you know I have no issues on the production build, and I am really happy with it. Keep up the good work! :)

@thingsneverchange
Copy link
Author

Maybe this is not a bug. I am closing this issue as it looks like Nuxt compiles at the almost equivalent speed even on the initial state of the project. I guess it's an expected behavior with all these modules built in Nuxt, specifially Nuxt SSR, but I heard a bit more about Vue Vite that accelerates the development speed I am not sure if this is a thing now for Nuxt at the current level of development. I will definitely continue using Nuxt. Thanks anyways for the hard work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants