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
|
|
@ -4,9 +4,9 @@
|
|||
"author": "uwap <me+mqttmap.package.json@uwap.name>",
|
||||
"description": "control devices via mqtt on a beautiful map of your space",
|
||||
"scripts": {
|
||||
"build": "webpack --bail --config webpack.dev.js",
|
||||
"production-build": "webpack --bail --config webpack.prod.js",
|
||||
"watch": "webpack-dev-server --open --config webpack.dev.js",
|
||||
"build": "webpack --bail --config webpack.dev.js --env",
|
||||
"production-build": "webpack --bail --config webpack.prod.js --env",
|
||||
"watch": "webpack-dev-server --open --config webpack.dev.js --env",
|
||||
"travis": "yarn lint && yarn build && yarn production-build",
|
||||
"lint": "eslint -- --ext js --ext jsx src/",
|
||||
"precommit": "yarn lint"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue