From 3fc1ff4c28413efd76aaefc56cb14870a5e27cdd Mon Sep 17 00:00:00 2001 From: Lachlan Kermode Date: Fri, 29 May 2020 12:53:55 +0200 Subject: [PATCH] enable alternative configs --- src/components/Map.jsx | 2 +- src/components/Toolbar/TagListPanel.js | 6 +++++- webpack.config.js | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/Map.jsx b/src/components/Map.jsx index d73946d..d0bdaca 100644 --- a/src/components/Map.jsx +++ b/src/components/Map.jsx @@ -34,7 +34,7 @@ class Map extends React.Component { componentDidMount () { if (this.map === null) { - // this.initializeMap() + this.initializeMap() } } diff --git a/src/components/Toolbar/TagListPanel.js b/src/components/Toolbar/TagListPanel.js index 6db1469..998337b 100644 --- a/src/components/Toolbar/TagListPanel.js +++ b/src/components/Toolbar/TagListPanel.js @@ -25,6 +25,11 @@ function TagListPanel ({ className={'tag-filter'} style={{ marginLeft: `${depth * 20}px` }} > + {/* */} + {/* */} + {/* */} + {/* */} + {/* */} {Object.values(children).map(tag => createNodeComponent(tag, 1))} diff --git a/webpack.config.js b/webpack.config.js index 068db75..26bc9c8 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -9,7 +9,8 @@ const APP_DIR = path.resolve(__dirname, './src') const BUILD_DIR = path.resolve(__dirname, './build') /** env variables from config.js */ -const envConfig = require('./config') +const CONFIG = process.env.CONFIG || 'config.js' +const envConfig = require('./' + CONFIG) const userConfig = {} const userFeatures = {} for (const k in envConfig) {