Small header fix + webpack dev mode

This commit is contained in:
Elio Struyf
2021-09-09 17:54:37 +02:00
parent edf5fc8401
commit 167c1fafa1
2 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ export const Header: React.FunctionComponent<IHeaderProps> = ({totalPages, folde
{
view === "contents" && (
<>
<div className={`px-4 my-2 flex items-center justify-between`}>
<div className={`px-4 mt-3 mb-2 flex items-center justify-between`}>
<Searchbox />
<div className={`flex items-center space-x-4`}>
+10 -2
View File
@@ -4,7 +4,7 @@
const path = require('path');
module.exports = [
const config = [
{
name: 'extension',
target: 'node',
@@ -96,4 +96,12 @@ module.exports = [
maxAssetSize: 400000
}
}
];
];
module.exports = (env, argv) => {
for (const configItem of config) {
configItem.mode = argv.mode;
}
return config;
};