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

fix(nuxt): use built-in watch option to restart nuxt #3748

Merged
merged 1 commit into from Aug 28, 2023

Conversation

danielroe
Copy link
Contributor

@danielroe danielroe commented Aug 27, 2023

Description

closes #3746

Since nuxt/nuxt#19530, we have a built-in way to watch files + restart Nuxt when they change. This means we don't need to register additional watchers in modules.

Spotted the issue in nuxt/cli#169. The watcher should probably have been set to be closed when nuxt closed (something like nuxt.hook('close', () => watcher.close()). Nevertheless, it's likely a bug we need to fix in nuxt/cli.

However, this PR works around the issue and also should improve performance in vuestic/nuxt by reducing watchers required.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Improvement/refactoring (non-breaking change that doesn't add any feature but make things better)

@m0ksem m0ksem self-requested a review August 28, 2023 09:06
@m0ksem m0ksem added the nuxt packages/nuxt label Aug 28, 2023
Copy link
Contributor

@m0ksem m0ksem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@m0ksem m0ksem merged commit 576c7a9 into epicmaxco:develop Aug 28, 2023
3 of 4 checks passed
@mrniamster
Copy link

Thanks. @m0ksem @danielroe <3

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

Successfully merging this pull request may close these issues.

Vuestic x Nuxt 3.7 - Not coming out of terminal – stuck in npm install
3 participants