Comments (3)
Thank you for posting this @wenheqi your solution worked for me.
from example-node-server.
"start": "nodemon ./src"
+ Nodemon configuration
from example-node-server.
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/"
Thanks!!
from example-node-server.
Related Issues (20)
- Run only one script HOT 6
- It does not resolve import/export HOT 1
- Wrong example
- Please update readme HOT 2
- Update this to use with babel7
- Is the notion that it isnt production optimized still valid ? HOT 1
- _
- .env is not supported in a preset
- ReferenceError: regeneratorRuntime is not defined HOT 1
- Babel6 Example
- Babel doesn't watch for file change HOT 7
- On DigitalOcean ubuntu .. HOT 1
- Unwanted transformations
- I have some questions to ask you about
- Change port and test fails.
- Spanish?
- [email protected]
- LinkedInprofile
- How
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from example-node-server.