Skip to content

Commit

Permalink
fix: Disable webp minification
Browse files Browse the repository at this point in the history
It causes every images to accidentally be converted to WebP
  • Loading branch information
ephys committed Apr 16, 2018
1 parent f1f9e4b commit 2832d19
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/internals/webpack/features/optimize.js
Expand Up @@ -50,14 +50,21 @@ export default class OptimizeFeature extends BaseFeature {
speed: 4,
},
svgo: {},
webp: {
quality: 75,

// TODO add a way to define the type of image for "preset"
// default, photo, picture, drawing, icon and text.
// https://github.com/imagemin/imagemin-webp
method: 5,
},
// Enabling WebP causes imagemin to convert every image to WebP,
// making them unusable on non chrome browsers
// TODO enable once
// https://github.com/tcoopman/image-webpack-loader/issues/112
// https://github.com/tcoopman/image-webpack-loader/issues/111
// is fixed
// webp: {
// quality: 75,
//
// // TODO add a way to define the type of image for "preset"
// // default, photo, picture, drawing, icon and text.
// // https://github.com/imagemin/imagemin-webp
// method: 5,
// },
},
});

Expand Down

0 comments on commit 2832d19

Please sign in to comment.