mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where preview images for themes were not loading in preferences. #6363
This commit is contained in:
@@ -69,7 +69,7 @@ const copyFiles = new CopyPlugin({
|
||||
pgadminThemesJson,
|
||||
{
|
||||
from: './pgadmin/static/scss/resources/**/*.png',
|
||||
to: 'img/[name].[ext]',
|
||||
to: 'img/[name][ext]',
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
@@ -30,14 +30,15 @@ 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
|
||||
plugins: [
|
||||
['mozjpeg', { progressive: true }],
|
||||
['optipng', { optimizationLevel: 7 }],
|
||||
['pngquant', {quality: [0.75, .9], speed: 3}],
|
||||
],
|
||||
minimizer: {
|
||||
implementation: ImageMinimizerPlugin.imageminMinify,
|
||||
options: {
|
||||
plugins: [
|
||||
['mozjpeg', { progressive: true }],
|
||||
['optipng', { optimizationLevel: 7 }],
|
||||
['pngquant', {quality: [0.75, .9], speed: 3}],
|
||||
],
|
||||
},
|
||||
},
|
||||
}),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user