Skip to content

Commit

Permalink
Fix missing webp support in create command
Browse files Browse the repository at this point in the history
see #730
  • Loading branch information
developit authored Feb 13, 2019
1 parent ab6829c commit cab08c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/lib/commands/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const { info, isDir, hasCommand, error, trim, warn } = require('../util');
const { addScripts, install, initGit, isMissing } = require('../lib/setup');

const ORG = 'preactjs-templates';
const RGX = /\.(woff2?|ttf|eot|jpe?g|ico|png|gif|mp4|mov|ogg|webm)(\?.*)?$/i;
const RGX = /\.(woff2?|ttf|eot|jpe?g|ico|png|gif|webp|mp4|mov|ogg|webm)(\?.*)?$/i;
const isMedia = str => RGX.test(str);
const capitalize = str => str.charAt(0).toUpperCase() + str.substring(1);

Expand Down

0 comments on commit cab08c4

Please sign in to comment.