문제

Here's my Gruntfile.js http://pastebin.com/JZU5bbDk

and my package.json http://pastebin.com/umYsnWi1

I did npm install inside the main directory of my workspace (using WAMP) and it installed node_modules folder with a bunch of subfolders inside.

I went to the nodejs command prompt and went to the directory so c:\wamp\www\thework and typed grunt watch and I get

Running "watch" task

waiting....

and when I tried to change anything in any file in that folder ... I got nothing. It didn't notice.

도움이 되었습니까?

해결책

You watch config doesn't make sense. Use this:

watch: {
    livereload: {
        options: { livereload: true },
        files: ['*.css']
    }
}

Running watch should now reload CSS files in the browser. From there you can expand out to other watch processes by adding other plugin tasks.

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