在旧版本的cssmin中,可以创建不同的目标文件。我缩小了一个style.min.css和一个fold.min.css。现在我更新到了更新版本的nodejs,npm,grunt和cssmin,并且不可能再缩小到不同的输出文件。由于update grunt只会缩小第二个任务并跳过第一个任务。你有什么暗示让我完成这两项任务吗?grunt cssmin不同的目标文件为style.min.css和above-the-fold.min.css
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']
}
}
}