-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Trying to output results in a JSON format fails as the starting curly brace {
is picked up by the templating in the task eg.:
{
filesize: {
default: {
files: [{
expand: true,
cwd: "build",
src: "./**/*.js.*",
ext: ".js*",
extDot: "first"
}],
options: {
output: {
path: "results/filesizes.json",
format: "\{\"name\": \"{filename}\" \}"
append: true
}
}
}
}
}
This example task configuration fails as the first curly brace is interpreted as a template var.
I'd suggest using grunt.template and removing the templating code all together.
New usage example for format would be:
format: "<%= filename %>,<%= kb%>,<%= now %>"
Metadata
Metadata
Assignees
Labels
No labels