Fixed an issue where preview images for the themes are not visible. 

refs #6207
This commit is contained in:
Aditya Toshniwal 2021-02-10 17:37:02 +05:30 committed by Akshay Joshi
parent 751b6c28b5
commit a5a83da045

View File

@ -69,7 +69,7 @@ const copyFiles = new CopyPlugin({
pgadminThemesJson,
{
from: './pgadmin/static/scss/resources/**/*.png',
to: outputPath + '/img',
to: 'img/[name].[ext]',
},
],
});
@ -326,13 +326,10 @@ var getThemeWebpackConfig = function(theme_name) {
},
// Define list of Plugins used in Production or development mode
// Ref:https://webpack.js.org/concepts/plugins/#components/sidebar/sidebar.jsx
plugins: PRODUCTION ? [
plugins: [
extractStyle,
sourceMapDevToolPlugin,
]: [
extractStyle,
sourceMapDevToolPlugin,
],
]
};
};