Answer the question
In order to leave comments, you need to log in
How to write a bash script that will listen for changes in a file?
I know that there are all sorts of task runners, but I want to do this, I wrote a bash script
#!/bin/bash
sass -t compressed build/sass/app.scss:public/css/app.css
autoprefixer-cli -b "> 0%" public/css/app.css -o public/css/app.css
cleancss -o public/css/app.css public/css/app.css
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question