Y
Y
Yuri Khodunov2017-05-19 19:21:50
Grunt.js
Yuri Khodunov, 2017-05-19 19:21:50

Why in the Grant in the created task ("serve") watch does not catch the change in the loess, while separately (grunt watch) works without problems?

module.exports = function(grunt) {
require("load-grunt-tasks")(grunt);
grunt.initConfig({
less: {
style: {
files: {
"css/style.css": "css/less/style.less"
}
}
},
watch: {
style: {
files: "css/less/*. less",
tasks: "less"
}
},
browserSync: {
server: {
bsFiles: {
src: ["*.html", "css/*.css"]
},
options: {
server: "."
}
}
}
});
grunt.registerTask("serve", ["
In this form, the browsersync is launched and the liveload works, the watch is launched, but it does not catch changes in the loess. And if you swap them, then changes in the loess are caught, and the liveload does not work.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question