Skip to content

build.watch issues #9045

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

Closed
rinu opened this issue Mar 24, 2021 · 0 comments · Fixed by #9153
Closed

build.watch issues #9045

rinu opened this issue Mar 24, 2021 · 0 comments · Fixed by #9153

Comments

@rinu
Copy link

rinu commented Mar 24, 2021

Versions

  • nuxt: 2.15.3
  • node: 14.16.0

Steps to reproduce

Clone https://github.com/rinu/codesandbox-nuxt
Run yarn
Run yarn dev
Edit ~/assets/README.md

What is Expected?

The file is watched for changes.

What is actually happening?

Nothing.

Description

Watching a file does work if and only if the full path is provided. Using the feature as documented (with ~) does not work.
When providing a full path and updating the watched file, the console output will display a message similar to ↻ Updated .nuxt/client.js. This filename is incorrect, I actually watch and updated ~/assets/README.md.

In my actual application I'm trying to watch a scss file and use a custom compiler on it in a compiled build hook.

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

Successfully merging a pull request may close this issue.

2 participants