diff --git a/_scripts/webpack.main.config.js b/_scripts/webpack.main.config.js index 54d4ccb0..c5561dcb 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 bd7431af..f2a07d73 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 79276116..a1bb591b 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 ef68da4c..9fd3136e 100644 --- a/src/index.ejs +++ b/src/index.ejs @@ -18,17 +18,6 @@
- <% if (process.env.NODE_ENV !== 'development') { %> - - - <% } %> -