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:
parent
3975518f6e
commit
c7ca716802
8 changed files with 34 additions and 22 deletions
|
|
@ -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`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue