Skip to content

Instantly share code, notes, and snippets.

@ay13
Last active August 29, 2015 13:58
Show Gist options
  • Save ay13/a178a3246fd321a7c371 to your computer and use it in GitHub Desktop.
Save ay13/a178a3246fd321a7c371 to your computer and use it in GitHub Desktop.
Grunt bake personalizations
{
"<%= app %>/article-1.html": "html-templates/article-1.tpl.html",
"<%= app %>/article-2.html": "html-templates/article-2.tpl.html",
"<%= app %>/article-3.html": "html-templates/article-3.tpl.html"
}
bake: {
build: {
options: {
// Change parse pattern from "{{ }}" to "{% %}" to stop interference with handlebars
parsePattern: '/{%s?([.-w]*)s?%}/g'
},
files: grunt.file.readJSON('bake-files.json')
}
}
...
grunt.loadNpmTasks('grunt-bake');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment