grunt-static-i18n
Advanced tools
Comparing version 0.3.1 to 0.3.2
{ | ||
"name": "grunt-static-i18n", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Grunt plugin to translate static assets.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/beck/grunt-static-i18n", |
@@ -115,2 +115,3 @@ # Static Internationalization | ||
* 0.3.2 - capture errors when compiling large templates | ||
* 0.3.1 - add text domain to options | ||
@@ -117,0 +118,0 @@ * 0.3.0 - fix issue with locale discovery |
@@ -84,3 +84,3 @@ /* | ||
try { | ||
return compiled = _.template(grunt.file.read(filepath)); | ||
compiled = _.template(grunt.file.read(filepath)); | ||
} catch (e) { | ||
@@ -93,2 +93,12 @@ grunt.log.warn( | ||
} | ||
try { | ||
compiled(); | ||
} catch (e) { | ||
grunt.log.warn( | ||
'Failed to compile: ', filepath, | ||
'\nIf template is over 900kb, must bump node’s stack size.\nError:', e | ||
); | ||
return false; | ||
} | ||
return compiled; | ||
}; | ||
@@ -95,0 +105,0 @@ |
19587
411
125