My project is a pretty basic yo/angular project. I have the following cssmin config.
useminPrepare: {
html: '<%= yeoman.app %>/index.html',
options: {
dest: '<%= yeoman.dist %>',
flow: {
html: {
steps: {
js: ['concat', 'uglifyjs'],
css: ['cssmin']
},
post: {}
}
}
}
},
...
cssmin: {
dist: {
files: {
'<%= yeoman.dist %>/styles/main.css': [
'.tmp/styles/{,*/}*.css'
]
}
}
},
...
grunt.registerTask('build', [
'clean:dist',
'wiredep',
'useminPrepare',
'concurrent:dist',
'autoprefixer',
'concat',
'ngAnnotate',
'copy:dist',
'cdnify',
'cssmin',
'uglify',
'filerev',
'usemin',
'htmlmin'
]);
when I run grunt build i get the following error:
Running "cssmin:generated" (cssmin) task
Warning: Path must be a string. Received undefined Use --force to continue.
Aborted due to warnings.
Execution Time (2016-05-26 00:57:04 UTC)
concurrent:dist 15s
autoprefixer:server 3.3s
ngAnnotate:dist 3.6s
cdnify:dist 10.7s
cssmin:dist 888ms
Total 34.6s
I have seen this error on other posts, but not with cssmin. I have upgraded my libraries in package.json to the latest, which could be the cause.
This project was building fine at one time. I can't determine what path is missing. Does anyone know what path I'm missing?