diff options
author | Sheogorath | 2018-10-03 19:33:04 +0200 |
---|---|---|
committer | Sheogorath | 2018-10-03 19:34:25 +0200 |
commit | a47d91dbd01fbf8ca82eff40d679a9653bc5a287 (patch) | |
tree | 9ec9346b85494d5d81132b8d682aba7c2c8b9522 | |
parent | d9ba11b21a77561ec3f72d5396d48fea32f6389d (diff) |
Add development mode for webpack in package.json
Seems like we have to explicitly tell the new webpack version that we
want to use the development environment. This provides us with source
maps and similar.
This patch adds the commandline option in our scripts in package.json
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
-rw-r--r-- | package.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json index 6d461225..12172639 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "test": "npm run-script standard && npm run-script jsonlint", "jsonlint": "find . -not -path './node_modules/*' -type f -name '*.json' -o -type f -name '*.json.example' | while read json; do echo $json ; jq . $json; done", "standard": "node ./node_modules/standard/bin/cmd.js", - "dev": "webpack --config webpack.config.js --progress --colors --watch", + "dev": "webpack --config webpack.config.js --mode=production --progress --colors --watch", "build": "webpack --config webpack.production.js --progress --colors --bail", "postinstall": "bin/heroku", "start": "node app.js", |