summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-04-10 01:20:49 -0500
committerMike Greiling <mike@pixelcog.com>2017-04-10 14:47:02 -0500
commitcb2c762d408c000475fe38b27dce0353593d2922 (patch)
treee71c9e00cd6f6fd1c3cb6fe27903ef17115ca1f7 /package.json
parentdd24066f02b8dfc173bf36d929760a6f7ece6211 (diff)
downloadgitlab-ce-cb2c762d408c000475fe38b27dce0353593d2922.tar.gz
use nodemon to watch for changes to webpack config and restart the dev server when necessary
Diffstat (limited to 'package.json')
-rw-r--r--package.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/package.json b/package.json
index 9852803f14e..a17399ddb8f 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"private": true,
"scripts": {
- "dev-server": "webpack-dev-server --config config/webpack.config.js",
+ "dev-server": "nodemon --watch config/webpack.config.js -- ./node_modules/.bin/webpack-dev-server --config config/webpack.config.js",
"eslint": "eslint --max-warnings 0 --ext .js,.vue .",
"eslint-fix": "eslint --max-warnings 0 --ext .js,.vue --fix .",
"eslint-report": "eslint --max-warnings 0 --ext .js,.vue --format html --output-file ./eslint-report.html .",
@@ -70,6 +70,7 @@
"karma-phantomjs-launcher": "^1.0.2",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^2.0.2",
+ "nodemon": "^1.11.0",
"webpack-dev-server": "^2.4.2"
}
}