cartodb-4.29/carto.js/grunt/tasks/watch.js
2020-06-15 10:58:47 +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'
]
}
};
}
};