Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

Commit

Permalink
Pass timestamp option for svgo(node engine)
Browse files Browse the repository at this point in the history
  • Loading branch information
garyanikin authored and Igor Anikin committed Mar 15, 2017
1 parent 9615daf commit 4ded02f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tasks/engines/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ module.exports = function(o, allDone) {

ttf: function(done) {
getFont('svg', function(svgFont) {
var font = svg2ttf(svgFont, {});
var font = svg2ttf(svgFont, {
ts: o.ts
});
font = new Buffer(font.buffer);
autohintTtfFont(font, function(hintedFont) {
// ttfautohint is optional
Expand Down
3 changes: 2 additions & 1 deletion tasks/webfont.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ module.exports = function(grunt) {
cache: options.cache || path.join(__dirname, '..', '.cache'),
callback: options.callback,
customOutputs: options.customOutputs,
execMaxBuffer: options.execMaxBuffer || 1024 * 200
execMaxBuffer: options.execMaxBuffer || 1024 * 200,
ts: (options.ts === 0) ? 0 : options.ts || Math.floor(Date.now() / 1000)
};

o = _.extend(o, {
Expand Down

0 comments on commit 4ded02f

Please sign in to comment.