carto.js/grunt/tasks/watch.js
2020-06-13 18:34:34 +08:00

28 lines
555 B
JavaScript

/**
* Watch grunt task for CARTO.js
*
*/
module.exports = {
task: function () {
return {
scss: {
files: ['themes/scss/**/*.scss'],
tasks: ['sass', 'concat:themes', 'cssmin:themes'],
options: {
spawn: false,
livereload: 35730
}
},
livereload: {
options: {
livereload: '<%= connect.server.options.livereload %>'
},
files: [
'.tmp/css/**/*.css',
'<%= dist %>/internal/themes/css/cartodb.css'
]
}
};
}
};