Webpack build for branch master: 71f2cc10f1

This commit is contained in:
Travis CI 2017-08-15 20:03:28 +00:00
parent 43001db966
commit f238f4eff5
2 changed files with 8 additions and 2 deletions

View file

@ -164,7 +164,13 @@ const AllowedImageFormats = [
'gif',
];
const AllowedImageSizes = Array.from({ length: 8 }, (e, i) => 2 ** (i + 4));
const AllowedImageSizes = [
128,
256,
512,
1024,
2048,
];
function makeImageUrl(root, { format = 'webp', size } = {}) {
if (format && !AllowedImageFormats.includes(format)) throw new Error('IMAGE_FORMAT', format);

File diff suppressed because one or more lines are too long