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

Commit

Permalink
Merge pull request #330 from mrhyde/fix/path.extname-in-node-v6
Browse files Browse the repository at this point in the history
fixed fatal error in node v6 passing `undefined` to path.extname()
  • Loading branch information
sapegin committed Apr 29, 2016
2 parents df9aa7c + 3beb381 commit b769322
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ Icon classes syntax. `bem` for double class names: `icon icon_awesome` or `boots

#### template

Type: `string` Default: `null`
Type: `string` Default: ``

Custom CSS template path (see `tasks/templates` for some examples). Should be used instead of `syntax`. (You probably need to define `htmlDemoTemplate` option too.)

Expand Down
5 changes: 5 additions & 0 deletions tasks/webfont.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ module.exports = function(grunt) {
return;
}

// path must be a string, see https://nodejs.org/api/path.html#path_path_extname_path
if (typeof options.template !== 'string') {
options.template = '';
}

// Options
var o = {
logger: logger,
Expand Down

0 comments on commit b769322

Please sign in to comment.