Automate the running of a program whenever there is a change in file(s)
- require the files to watch for changes
- specify what commands/tasks to run when a change is detected
- modify the test rule to match the file extensions you are monitoring
test: /\.txt$/,
- review "Configuration" above then run the commands below
npm i
npm run prod
This code has only been tested on Ubuntu 18.04