From d8f7d073ce73960ddd7a488e0e92d41fb3c6d986 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Wed, 19 Oct 2022 03:09:49 +0200 Subject: [PATCH] Remove unused ft-grid component and __static variable (#2744) * Remove unused ft-grid component * Remove unused __static variable --- _scripts/webpack.main.config.js | 8 +------- _scripts/webpack.renderer.config.js | 9 +-------- _scripts/webpack.web.config.js | 12 ------------ src/index.ejs | 11 ----------- src/main/index.js | 4 ---- src/renderer/components/ft-grid/ft-grid.css | 6 ------ src/renderer/components/ft-grid/ft-grid.js | 5 ----- src/renderer/components/ft-grid/ft-grid.vue | 8 -------- 8 files changed, 2 insertions(+), 61 deletions(-) delete mode 100644 src/renderer/components/ft-grid/ft-grid.css delete mode 100644 src/renderer/components/ft-grid/ft-grid.js delete mode 100644 src/renderer/components/ft-grid/ft-grid.vue diff --git a/_scripts/webpack.main.config.js b/_scripts/webpack.main.config.js index 54d4ccb00..c5561dcb1 100644 --- a/_scripts/webpack.main.config.js +++ b/_scripts/webpack.main.config.js @@ -57,13 +57,7 @@ const config = { target: 'electron-main', } -if (isDevMode) { - config.plugins.push( - new webpack.DefinePlugin({ - __static: `"${path.join(__dirname, '../static').replace(/\\/g, '\\\\')}"`, - }) - ) -} else { +if (!isDevMode) { config.plugins.push( new CopyWebpackPlugin({ patterns: [ diff --git a/_scripts/webpack.renderer.config.js b/_scripts/webpack.renderer.config.js index bd7431af3..f2a07d731 100644 --- a/_scripts/webpack.renderer.config.js +++ b/_scripts/webpack.renderer.config.js @@ -145,14 +145,7 @@ const config = { /** * Adjust rendererConfig for production settings */ -if (isDevMode) { - // any dev only config - config.plugins.push( - new webpack.DefinePlugin({ - __static: `"${path.join(__dirname, '../static').replace(/\\/g, '\\\\')}"`, - }) - ) -} else { +if (!isDevMode) { const processLocalesPlugin = new ProcessLocalesPlugin({ compress: true, inputDir: path.join(__dirname, '../static/locales'), diff --git a/_scripts/webpack.web.config.js b/_scripts/webpack.web.config.js index 792761162..a1bb591bd 100644 --- a/_scripts/webpack.web.config.js +++ b/_scripts/webpack.web.config.js @@ -160,18 +160,6 @@ const config = { target: 'web', } -/** - * Adjust web for production settings - */ -if (isDevMode) { - // any dev only config - config.plugins.push( - new webpack.DefinePlugin({ - __static: `"${path.join(__dirname, '../static').replace(/\\/g, '\\\\')}"`, - }) - ) -} - const processLocalesPlugin = new ProcessLocalesPlugin({ compress: false, inputDir: path.join(__dirname, '../static/locales'), diff --git a/src/index.ejs b/src/index.ejs index ef68da4c6..9fd3136e3 100644 --- a/src/index.ejs +++ b/src/index.ejs @@ -18,17 +18,6 @@
- <% if (process.env.NODE_ENV !== 'development') { %> - - - <% } %> -