mirror of
https://github.com/strapi/strapi.git
synced 2025-08-12 02:38:21 +00:00
Merge pull request #4257 from strapi/webpack/update-image-loader
Update image-webpack-loader configuration
This commit is contained in:
commit
8da5165a80
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user