Fixed an issue where preview images for themes were not loading in preferences. #6363
parent
78c098c9ea
commit
3e713cf58b
|
@ -69,7 +69,7 @@ const copyFiles = new CopyPlugin({
|
|||
pgadminThemesJson,
|
||||
{
|
||||
from: './pgadmin/static/scss/resources/**/*.png',
|
||||
to: 'img/[name].[ext]',
|
||||
to: 'img/[name][ext]',
|
||||
},
|
||||
],
|
||||
});
|
||||
|
|
|
@ -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}],
|
||||
],
|
||||
},
|
||||
},
|
||||
}),
|
||||
],
|
||||
|
||||
|
|
Loading…
Reference in New Issue