I tried to run the watch task by grunt in node.js but it doesn't work for me (this is what I got):  $ grunt watch warning: Maximum call stack size exceeded Use --force to continue.   This is the part of the watch task in the Gruntfile.js:  watch:...
Using a version of what grunt-contrib-watch recommends for compiling only changed files in here: https://github.com/gruntjs/grunt-contrib-watch#compiling-files-as-needed  var changedFiles = Object.create(null);  var onChange = grunt.util._.debounce(f...
I'm using grunt, and I would like to concat all js files in a certain directory, in a specific order (It's an angular js app, so I want to do my module definitions first, followed by everything else).  My grunt concat target looks like:  conc...
I'm trying to use grunt-newer to watch files from a folder and if any is changed, trigger a custom task.  I have something like this in my Gruntfile.js:  grunt.initConfig({    watch: {       widgets: {          files: "/somepath/*.js",...
I am kinda new to grunt and want to use it with Jekyll and some LESS-compiling.  My problem now is, I already have fully functioning LESS-comipiling with live reload and watch task and can build my jekyll site through grunt, but how do I run somethin...
I search a way to schedule Grunt task with a Grunt plugin. I found nothing.  Is that possible to look at the time with "watch" and execute a task if it's time ?...
I'm using grunt to have some tasks done every time I change my code ( jshint  for example ) and I want to reload a phantomJs process every time I have changes.  The first way I found is to use grunt.util.spawn to run phantomJs the first time.  //...
I want to create a common top-level Gruntfile.js configured to watch over less file change. When the less file changes, I want to compile it to css and then livereload the css file in browser. I have the functionality working but I have to duplicate...
I am confused by the watcher config in my gruntfile. Here's the watch part of my gruntfile.   watch: {   bower: {     files: ['bower.json'],     tasks: ['wiredep']   },   js: {     files: ['<%= yeoman.app %>/scripts/{,*/...
I have been spending over an hour on this one, looked through several questions, but the answer is nowhere to be found.  I am running into a problem when using watch on my javascript files. All of the other files are watched and the tasks are execute...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.