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,
|
pgadminThemesJson,
|
||||||
{
|
{
|
||||||
from: './pgadmin/static/scss/resources/**/*.png',
|
from: './pgadmin/static/scss/resources/**/*.png',
|
||||||
to: 'img/[name].[ext]',
|
to: 'img/[name][ext]',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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}],
|
||||||
],
|
],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user