Automatically run a script when a specific file is modified and saved?
Answered
dperolio posted this in #help-forum
dperolioOP
Is it possible to set it up so I can run a package.json script automatically when a certain file is modified and saved? e.g. I have a schema file and generate Firebase rules from that file. If the schema file is updated, I want to generate new Firebase rules as well.
Answered by dperolio
Would I just use something like nodemon/chokidar/watch and run it concurrently with next dev, or is there some built-in way with Next?
1 Reply
dperolioOP
Would I just use something like nodemon/chokidar/watch and run it concurrently with next dev, or is there some built-in way with Next?
Answer