I am new to Yeoman and Grunt.
While doing Grunt build the build seem to end successfully but dist/styles/*.css files are not being created.
From the logs it looks like the styles are compiled to .tmp/styles/ (see "compass:dist" (compass) task below) but not being copied or minified to dist/styles. and thats why "usemin:css" (usemin) does not file the files. - But this is only a guess.
I am using the basic Gruntfile.info that is generated by yeoman (I added it below)and the only change I made was to comment out the cssmin task since suppose to do the same thing.
Here is the build output:
$ grunt buildRunning "clean:dist" (clean) taskRunning "bower-install:app" (bower-install) taskRunning "useminPrepare:html" (useminPrepare) taskGoing through app/index.html to update the configLooking for build script HTML comment blocksConfiguration is now: concat: { generated: { files: [ { dest: '.tmp\\concat\\scripts\\scripts.js', src: [ LIBRARIES ] }, { dest: '.tmp\\concat\\scripts\\modules.js', src: [ SOURCE ] } ] } } uglify: { generated: { files: [ { dest: 'dist\\scripts\\scripts.js', src: [ '.tmp\\concat\\scripts\\scripts.js' ] }, { dest: 'dist\\scripts\\modules.js', src: [ '.tmp\\concat\\scripts\\modules.js' ] } ] } } cssmin: {}Running "concurrent:dist" (concurrent) taskRunning "imagemin:dist" (imagemin) task? app/images/yeoman.png (saved 9.06 kB)Minified 1 image (saved 9.06 kB)Done, without errors.Running "svgmin:dist" (svgmin) taskDone, without errors.Running "compass:dist" (compass) taskdirectory .tmp/styles/ create .tmp/styles/bootstrap.css (1.759s) create .tmp/styles/main.css (0.117s) create .tmp/styles/problem-comprehension.css (0.002s) create .tmp/styles/problem-timedword.css (0.002s) create .tmp/styles/track-detail.css (0.009s) Compilation took 1.915sDone, without errors.Running "autoprefixer:dist" (autoprefixer) taskPrefixed file ".tmp/styles/bootstrap.css" created.Prefixed file ".tmp/styles/main.css" created.Prefixed file ".tmp/styles/problem-comprehension.css" created.Prefixed file ".tmp/styles/problem-timedword.css" created.Prefixed file ".tmp/styles/track-detail.css" created.Running "concat:generated" (concat) taskFile ".tmp\concat\scripts\scripts.js" created.File ".tmp\concat\scripts\modules.js" created....Running "usemin:html" (usemin) taskProcessing as HTML - dist/404.htmlUpdate the HTML to reference our concat/min/revved script filesUpdate the HTML with the new css filenamesUpdate the HTML with the new img filenamesUpdate the HTML with data-main tagsUpdate the HTML with data-* tagsUpdate the HTML with background imgs, case there is some inline styleUpdate the HTML with anchors imagesUpdate the HTML with reference in input.All HTML files in the project.Running "usemin:css" (usemin) taskRunning "htmlmin:dist" (htmlmin) taskFile <FILE>.html created.Done, without errors.Execution Time (2014-02-06 22:23:38 UTC)clean:dist 1.3s ■■■■■■■■■■ 7%concurrent:dist 5.3s ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 29%ngmin:dist 2.3s ■■■■■■■■■■■■■■■■■ 13%copy:dist 6.1s ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 33%uglify:generated 2.6s ■■■■■■■■■■■■■■■■■■■ 14%usemin:html 349ms ■■■ 2%Total 18.4s
The build target from Grunt.js:
grunt.registerTask('build', ['clean:dist','bower-install','useminPrepare','concurrent:dist','autoprefixer','concat','ngmin','copy:dist','cdnify',// 'cssmin','uglify','rev','usemin','htmlmin' ]);
Cheers!