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

pull/6433/head
Pravesh Sharma 2023-06-12 14:59:43 +05:30 committed by GitHub
parent 78c098c9ea
commit 3e713cf58b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 9 deletions

View File

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

View File

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