문제

I understand how to make grunt watch the sass files for changes then compile and how to start an express server as well but I can't figure out how to keep an express server running while watching changes for sass files. I've been googling for an hour and have given up, is this an impossible task? I'm new to grunt.

도움이 되었습니까?

해결책

Did you take a look at Nodemon? https://github.com/remy/nodemon

nodemon will watch the files in the directory where nodemon was started, and if they change, >it will automatically restart your node application.

Does integrate with grunt: https://github.com/ChrisWren/grunt-nodemon

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top