Remove prettify: {indent: 2}
from Assemble options.
assemble: {
options: {
marked: {sanitize: false},
data: "src/template/data/site.yml",
layoutdir: 'src/template/layouts',
},
all: {
options: {production: false,layout: 'default.hbs'},
files: [
{ expand: true, cwd: 'src/template/pages', src: ['**/*.hbs'], dest: 'dist/' }
]
}
},
You already specify custom options in prettify
task
prettify: {
options: {
indent: 4,
wrap_line_length: 78,
brace_style: 'expand',
},
// Specify a number to padcomments
all: {
files: [
{expand: true, cwd: 'dist/', src: ['*.html'], dest: 'dist/', ext: '.html'}
]
}
},
Specify prettify: {indent: 2}
in Assemble options mean Grunt will looking for task prettify:indent
with options src: 2
and dest: indent
which is not exist in your Gruntfile.