在旧版本的 cssmin 中,可以创建不同的目标文件。我缩小了 style.min.css 和 above-the-fold.min.css。现在我更新到了更新版本的 nodejs、npm、grunt 和 cssmin,并且无法再缩小到不同的输出文件。由于更新 grunt 只会缩小第二个任务并跳过第一个任务。你有什么建议让我缩小这两个任务吗?
cssmin: {
options: {
mergeIntoShorthands: false,
roundingPrecision: -1
},
target: {
files: {
'data/style.min.css': ['a.css', 'b.css', 'c.css', 'd.css', 'e.css', 'f.css', 'g.css']
}
}
},
penthouse: {
extract : {
outfile : 'data/above-the-fold.temp.css',
css : './data/style.min.css',
url : 'http://localhost/',
width : 1280,
height : 500
},
},
cssmin: {
options: {
mergeIntoShorthands: false,
roundingPrecision: -1
},
target: {
files: {
'data/above-the-fold.min.css': ['data/above-the-fold.temp.css']
}
}
}