Last active
August 29, 2015 13:58
-
-
Save ay13/a178a3246fd321a7c371 to your computer and use it in GitHub Desktop.
Grunt bake personalizations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"<%= 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" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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