S
S
Stepan2014-09-04 11:21:08
JavaScript
Stepan, 2014-09-04 11:21:08

How to setup watch in grunt on jade?

watch: {
            options: {
                livereloader: true
            },
            css: {
                files: ['assets/header/.scss'],
                tasks: ['sass']
            },
            scripts: {
                files: ['html/index.jade'],
                tasks: ['jade'],
                options: {
                    spawn: false
                }
            }
        },

Here is my. Interestingly, scss does not work either. Not to mention livereload/
Maybe I don't understand something?
HELP

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2014-09-04
@xoma2

Look closely - you are forcing it to watch the .scss file. Correct to assets/header/*.scss.
With jade, I suspect a similar problem - check the paths.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question