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

Server not reloading on non-js file save #32

Open
Theycallmeholla opened this issue Aug 7, 2021 · 1 comment
Open

Server not reloading on non-js file save #32

Theycallmeholla opened this issue Aug 7, 2021 · 1 comment

Comments

@Theycallmeholla
Copy link

I have my script setup as
"dev": "cross-env NODE_ENV=development nodemon app"

When I save .js files, it works fine, but when I save anything else, it doesn't and I have to restart the server to see the updates.

@Theycallmeholla
Copy link
Author

Ok so doing some research I figured out a solution:

I replaced this:
"dev": "cross-env NODE_ENV=development nodemon app"

with this:
"dev": "cross-env NODE_ENV=development nodemon -e 'hbs,env,css,js'"

Also, before I did this, morgan wasnt working either, but after the change it's working as well.

Before or on closing, can someone explain to me what I may be missing? I don't see where my code is different.

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

No branches or pull requests

1 participant