node.js - Grunt grunt-contrib-cssmin runs unending doesn't combine files -


i having strange issue grunt-contrib-cssmin. never stops or gives errors. using

c:\projects\doeclf>grunt --version && node --version && npm --version grunt-cli v0.1.13 grunt v0.4.5 v0.12.4 2.10.1

my grunt.js has following in it

  cssmin: {             target: {                 files: [{                     expand: true,                     cwd: 'css/',                     src: ['index.css', '!*.min.css'],                     dest: 'css/',                     ext: '.min.css'                 }]             }         } 

my project structure follows

  |  |  grunt.js   |  |__css     |     |__index.css    

when run grunt task out throws , never finishes.

the output grunt cssmin --verbose is

    [4minitializing[24m command-line options: [36m--verbose[39m  reading "gruntfile.js" gruntfile...[32mok[39m  [1mregistering gruntfile tasks.[22m reading package.json...[32mok[39m parsing package.json...[32mok[39m initializing config...[32mok[39m  [1mregistering "grunt-contrib-requirejs" local npm module tasks.[22m reading c:\projects\doeclf\node_modules\grunt-contrib-requirejs\package.json...[32mok[39m parsing c:\projects\doeclf\node_modules\grunt-contrib-requirejs\package.json...[32mok[39m loading "requirejs.js" tasks...[32mok[39m + [36mrequirejs[39m  [1mregistering "grunt-contrib-compass" local npm module tasks.[22m reading c:\projects\doeclf\node_modules\grunt-contrib-compass\package.json...[32mok[39m parsing c:\projects\doeclf\node_modules\grunt-contrib-compass\package.json...[32mok[39m loading "compass.js" tasks...[32mok[39m + [36mcompass[39m  [1mregistering "grunt-contrib-concat" local npm module tasks.[22m reading c:\projects\doeclf\node_modules\grunt-contrib-concat\package.json...[32mok[39m parsing c:\projects\doeclf\node_modules\grunt-contrib-concat\package.json...[32mok[39m loading "concat.js" tasks...[32mok[39m + [36mconcat[39m  [1mregistering "grunt-contrib-connect" local npm module tasks.[22m reading c:\projects\doeclf\node_modules\grunt-contrib-connect\package.json...[32mok[39m parsing c:\projects\doeclf\node_modules\grunt-contrib-connect\package.json...[32mok[39m loading "connect.js" tasks...[32mok[39m + [36mconnect[39m  [1mregistering "grunt-contrib-cssmin" local npm module tasks.[22m reading c:\projects\doeclf\node_modules\grunt-contrib-cssmin\package.json...[32mok[39m parsing c:\projects\doeclf\node_modules\grunt-contrib-cssmin\package.json...[32mok[39m loading "cssmin.js" tasks...[32mok[39m + [36mcssmin[39m  [1mregistering "csswring" local npm module tasks.[22m reading c:\projects\doeclf\node_modules\csswring\package.json...[32mok[39m parsing c:\projects\doeclf\node_modules\csswring\package.json...[32mok[39m loading "csswring.js" tasks...[32mok[39m + [36mcsswring[39m  [1mregistering "grunt-contrib-sass" local npm module tasks.[22m reading c:\projects\doeclf\node_modules\grunt-contrib-sass\package.json...[32mok[39m parsing c:\projects\doeclf\node_modules\grunt-contrib-sass\package.json...[32mok[39m loading "sass.js" tasks...[32mok[39m + [36msass[39m  [1mregistering "grunt-contrib-uglify" local npm module tasks.[22m reading c:\projects\doeclf\node_modules\grunt-contrib-uglify\package.json...[32mok[39m parsing c:\projects\doeclf\node_modules\grunt-contrib-uglify\package.json...[32mok[39m loading "uglify.js" tasks...[32mok[39m + [36muglify[39m  [1mregistering "grunt-contrib-watch" local npm module tasks.[22m reading c:\projects\doeclf\node_modules\grunt-contrib-watch\package.json...[32mok[39m parsing c:\projects\doeclf\node_modules\grunt-contrib-watch\package.json...[32mok[39m loading "watch.js" tasks...[32mok[39m + [36mwatch[39m  [1mregistering "grunt-express" local npm module tasks.[22m reading c:\projects\doeclf\node_modules\grunt-express\package.json...[32mok[39m parsing c:\projects\doeclf\node_modules\grunt-express\package.json...[32mok[39m  [1mregistering "grunt-parallel" local npm module tasks.[22m reading c:\projects\doeclf\node_modules\grunt-express\node_modules\grunt-parallel\package.json...[32mok[39m parsing c:\projects\doeclf\node_modules\grunt-express\node_modules\grunt-parallel\package.json...[32mok[39m loading "parallel.js" tasks...[32mok[39m + [36mparallel[39m loading "express.js" tasks...[32mok[39m + [36mexpress[39m, [36mexpress-keepalive[39m, [36mexpress-restart[39m, [36mexpress-server[39m, [36mexpress-start[39m  [1mregistering "grunt-open" local npm module tasks.[22m reading c:\projects\doeclf\node_modules\grunt-open\package.json...[32mok[39m parsing c:\projects\doeclf\node_modules\grunt-open\package.json...[32mok[39m loading "open.js" tasks...[32mok[39m + [36mopen[39m loading "gruntfile.js" tasks...[32mok[39m + [36mbuildsass[39m, [36mconcatcss[39m, [36mcssmin[39m, [36mdefault[39m, [36mserver[39m  running tasks: [36mcssmin[39m  [4mrunning "cssmin" task[24m  [4mrunning "cssmin" task[24m  [4mrunning "cssmin" task[24m  [4mrunning "cssmin" task[24m  [4mrunning "cssmin" task[24m 

your target fine , works perfectly, issue somewhere else in code.

specifically, last line shows redefining own cssmin task loading "gruntfile.js" tasks...[32mok[39m + [36mbuildsass[39m, [36mconcatcss[39m, [36mcssmin[39m, [36mdefault[39m, [36mserver[39m

this causes infinite looping, call own task name (mincss?) , should fine.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -