Skip to content

Commit

Permalink
fix(cli): handle upper case file extensions
Browse files Browse the repository at this point in the history
Closes #181
  • Loading branch information
JamieMason committed Sep 15, 2019
1 parent b492ad2 commit e7c84ac
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,28 @@ export interface IApp {

const manifest = require('../package.json');
const supports = {
imageAlpha: ['.png'],
imageOptim: ['.bmp', '.gif', '.jpeg', '.jpg', '.pcx', '.png', '.pnm', '.tga', '.tiff'],
jpegmini: ['.jpg', '.jpeg']
imageAlpha: ['.PNG', '.png'],
imageOptim: [
'.BMP',
'.bmp',
'.GIF',
'.gif',
'.JPEG',
'.jpeg',
'.JPG',
'.jpg',
'.PCX',
'.pcx',
'.PNG',
'.png',
'.PNM',
'.pnm',
'.TGA',
'.tga',
'.TIFF',
'.tiff'
],
jpegmini: ['.JPEG', '.jpeg', '.JPG', '.jpg']
};

export const SUPPORTED_FILE_TYPES = [
Expand Down

0 comments on commit e7c84ac

Please sign in to comment.