Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Commit

Permalink
Merge pull request #105 from sortlist/master
Browse files Browse the repository at this point in the history
update optipng and jpegtran
  • Loading branch information
gagalago committed Jun 20, 2016
2 parents f3d1b39 + 18bffde commit 1738f63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/main.js
Expand Up @@ -22,8 +22,8 @@ var fs = require('fs'),
_ = require('underscore'),
uglify = require('uglify-js'),
spawn = require('child_process').spawn,
optipngPath = require('optipng-bin').path,
jpegtranPath = require('jpegtran-bin').path,
optipngPath = require('optipng-bin'),
jpegtranPath = require('jpegtran-bin'),
cleanCSS = require('clean-css')

_.str = require('underscore.string');
Expand Down Expand Up @@ -572,7 +572,7 @@ var CDN = function(app, options, callback) {
results = [],
regexCDN = /CDN\(((\([^)]+\)|[^)])+)\)/ig;
walker.on('file', function(root, stat, next) {
var validExts = options.extensions || ['.jade', '.ejs'];
var validExts = options.extensions || ['.jade', '.ejs', '.pug'];
var ext = path.extname(stat.name), text;

if (_.indexOf(validExts, ext) !== -1) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -119,8 +119,8 @@
"walk": "~2.2.1",
"async": "~0.2.9",
"uglify-js": "~2.4.3",
"optipng-bin": "~0.3",
"jpegtran-bin": "~0.2.1",
"optipng-bin": "3.1.2",
"jpegtran-bin": "~3.0.6",
"knox": "~0.9.2",
"request": "~2.16.6",
"underscore.string": "~2.3.1",
Expand Down

0 comments on commit 1738f63

Please sign in to comment.