From 167c1fafa12e81e1a1a0cb361ff5c3dc96fd0aa5 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Thu, 9 Sep 2021 17:54:37 +0200 Subject: [PATCH] Small header fix + webpack dev mode --- src/pagesView/components/Header/Header.tsx | 2 +- webpack.config.js | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/pagesView/components/Header/Header.tsx b/src/pagesView/components/Header/Header.tsx index ca9ab459..f7b52b2a 100644 --- a/src/pagesView/components/Header/Header.tsx +++ b/src/pagesView/components/Header/Header.tsx @@ -54,7 +54,7 @@ export const Header: React.FunctionComponent = ({totalPages, folde { view === "contents" && ( <> -
+
diff --git a/webpack.config.js b/webpack.config.js index bfd5fdd3..ee1b632f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -4,7 +4,7 @@ const path = require('path'); -module.exports = [ +const config = [ { name: 'extension', target: 'node', @@ -96,4 +96,12 @@ module.exports = [ maxAssetSize: 400000 } } -]; \ No newline at end of file +]; + +module.exports = (env, argv) => { + for (const configItem of config) { + configItem.mode = argv.mode; + } + + return config; +}; \ No newline at end of file