Fixed an issue where preview images for themes were not loading in preferences. #6363

This commit is contained in:
Pravesh Sharma
2023-06-12 14:59:43 +05:30
committed by GitHub
parent 78c098c9ea
commit 3e713cf58b
2 changed files with 10 additions and 9 deletions

View File

@@ -69,7 +69,7 @@ const copyFiles = new CopyPlugin({
pgadminThemesJson, pgadminThemesJson,
{ {
from: './pgadmin/static/scss/resources/**/*.png', from: './pgadmin/static/scss/resources/**/*.png',
to: 'img/[name].[ext]', to: 'img/[name][ext]',
}, },
], ],
}); });

View File

@@ -30,14 +30,15 @@ module.exports = {
}), }),
new ImageMinimizerPlugin({ new ImageMinimizerPlugin({
test: /\.(jpe?g|png|gif)$/i, test: /\.(jpe?g|png|gif)$/i,
minimizerOptions: { minimizer: {
// Lossless optimization with custom option implementation: ImageMinimizerPlugin.imageminMinify,
// Feel free to experiment with options for better result for you options: {
plugins: [ plugins: [
['mozjpeg', { progressive: true }], ['mozjpeg', { progressive: true }],
['optipng', { optimizationLevel: 7 }], ['optipng', { optimizationLevel: 7 }],
['pngquant', {quality: [0.75, .9], speed: 3}], ['pngquant', {quality: [0.75, .9], speed: 3}],
], ],
},
}, },
}), }),
], ],