Skip to content
This repository was archived by the owner on Mar 9, 2025. It is now read-only.
This repository was archived by the owner on Mar 9, 2025. It is now read-only.

Script in "Watching file changes with nodemon" doesn't work #53

Description

@wenheqi

Please correct me if I interpret the section "Watching file changes with nodemon" wrong.

What I found in this section is that after issue npm start, the project won't rebuild when index.js is modified, i.e. when I modified the greetings, it was not updated when I refresh the page. The script seems only to build the project once when the command is issued.

Following script works for me:

"start": "nodemon --exec \"npm run build && node dist/index.js\" -e js --ignore dist/"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions