Merge pull request #4257 from strapi/webpack/update-image-loader

Update image-webpack-loader configuration
This commit is contained in:
Alexandre BODIN 2019-10-15 14:58:41 +02:00 committed by GitHub
commit 8da5165a80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,11 +151,16 @@ module.exports = ({
test: /\.(jpg|png|gif|ico)$/,
loaders: [
require.resolve('file-loader'),
// Copied from react-boilerplate https://github.com/react-boilerplate/react-boilerplate
{
loader: require.resolve('image-webpack-loader'),
query: {
mozjpeg: {
progressive: true,
enabled: false,
// NOTE: mozjpeg is disabled as it causes errors in some Linux environments
// Try enabling it in your environment by switching the config to:
// enabled: true,
// progressive: true,
},
gifsicle: {
interlaced: false,