Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Stops yeoman from looking for win32 binaries in ../vendor/.

  • Loading branch information...
commit 5b036b5282bdf29902d7660cfd961538235afa99 1 parent 433da97
@kevva kevva authored
Showing with 2 additions and 8 deletions.
  1. +2 −8 cli/tasks/img.js
View
10 cli/tasks/img.js
@@ -145,17 +145,11 @@ module.exports = function(grunt) {
}
});
- // **which** helper, wrapper to isaacs/which package plus some fallback logic
- // specifically for the win32 binaries in vendor/ (optipng.exe, jpegtran.exe)
+ // **which** helper, wrapper to isaacs/which package
grunt.registerHelper('which', function(cmd, cb) {
- if ( !win32 || !/optipng|jpegtran/.test( cmd ) ) {
+ if ( win32 || !/optipng|jpegtran/.test( cmd ) ) {
return which( cmd, cb );
}
-
- var cmdpath = cmd === 'optipng' ? '../vendor/optipng-0.7.1-win32/optipng.exe' :
- '../vendor/jpegtran-8d/jpegtran.exe';
-
- cb(null, path.join(__dirname, cmdpath));
});
};
Please sign in to comment.
Something went wrong with that request. Please try again.