gpt4 book ai didi

gruntjs - cssmin给我 "Path must be a string. Received undefined"

转载 作者:行者123 更新时间:2023-12-04 04:54:46 24 4
gpt4 key购买 nike

我的项目是一个非常基本的溜溜/角项目。我有以下cssmin配置。

    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'
]);

当我运行grunt build时,出现以下错误:
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

我在其他帖子上看到了此错误,但是在cssmin中却没有。我已经将package.json中的库升级到最新版本,这可能是原因。

该项目一次 build 良好。我无法确定缺少什么路径。有人知道我想念的那条路吗?

最佳答案

实际上,该问题已解决,请为v1.0.2更新您的版本
link here

关于gruntjs - cssmin给我 "Path must be a string. Received undefined",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37450473/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com