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 am attempting to setup grunt-notify with grunt-contrib-less and grunt-contrib-watch.  Generally this is working well but I can't get grunt-notify to notify me when grunt-less is executed successfully.    If anyone has any insight on how to set...
I am new to Grunt and to Javascript/Coffeescript altogether.  We are using Grunt in a rather large project with hundreds of .coffee - files. Since Grunt compiles all coffeefiles (although only one file has changed), my initial question was on how to...
Is it possible to watch multiple files/folders but optimise only a single file using grunt-contrib-imagemine and grunt-contrib-watch?  I tried like this: (part of gruntfile)  imagemin: {   dist: {     cwd: 'images/modules',     files: ['i...
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.  //...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.