From a5a83da045fffdf048bb109d993abc6b755cb8e2 Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Wed, 10 Feb 2021 17:37:02 +0530 Subject: [PATCH] =?UTF-8?q?Fixed=20an=20issue=20where=C2=A0preview=20image?= =?UTF-8?q?s=20for=20the=20themes=20are=20not=20visible.=C2=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refs #6207 --- web/webpack.config.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/web/webpack.config.js b/web/webpack.config.js index 2f6cbc70c..642b508cb 100644 --- a/web/webpack.config.js +++ b/web/webpack.config.js @@ -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, - ], + ] }; };