Require the config as CLI arg for watch, build and production-build

The mqtt control map now loads the config provided via cli. It is no longer required to modify the src/config.js to load a different config.
This commit is contained in:
uwap 2018-02-02 07:45:00 +01:00
parent 3975518f6e
commit c7ca716802
8 changed files with 34 additions and 22 deletions

View file

@ -1,4 +0,0 @@
// @flow
import config from "../config/entropia";
export default config;

View file

@ -5,11 +5,10 @@ import injectTapEventPlugin from "react-tap-event-plugin";
import App from "components/App";
import Config from "./config";
import "../node_modules/mdi/css/materialdesignicons.min.css";
import "../css/styles.css";
const Config = window.config;
injectTapEventPlugin();
document.title = `${Config.space.name} Map`;