Closed duty-bound closed 3 years ago
Hi,
Can you change to "watch": "nodemon --watch \"./webpack.*\" --exec \"npm run start\"",
? Note the escaping I added.
I'll have to change this in the book as well so please don't close the issue until I do so. 👍
Thanks for your solution :)
For some reason above one doesn't work for me:
I have to change to:
"watch": "nodemon --watch \"./webpack.*.*\" --exec \"npm start\"",
Notice: webpack.*.*
, even changing to webpack.config.js
works, but not just webpack.*
@rjvim Thanks for the heads up. It's possible nodemon is more strict about *
now so I adjusted the book accordingly.
I am currently on Chapter 3: Composing Configuration.
When running the below script I get an error:
Error:
If I rename "webpack.parts.js" to "parts.js" (and obviously update the respective 'require' statement in 'webpack.config.js) everything works fine; however "parts.js" will no longer be watched for changes.
Is it me doing something wrong or does this script need to be amended please?
Code available in this repo here.