summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-02-02 10:37:09 -0600
committerMike Greiling <mike@pixelcog.com>2018-02-02 10:37:09 -0600
commited29be1b685d1fd0ace744ec5f2dd1f09b7eb0be (patch)
treef73c551f3b769544ff2b273e71684c7f5f96a4ca
parentac85d98cc3c08c56ae02158effa1e59739ba3485 (diff)
downloadgitlab-ce-webpack-auto-config.tar.gz
update nodemon watch configuration to restart dev-server when new entry points are addedwebpack-auto-config
-rw-r--r--package.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json
index df0d2bb3676..26908e9f905 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"private": true,
"scripts": {
- "dev-server": "nodemon --watch config/webpack.config.js -- ./node_modules/.bin/webpack-dev-server --config config/webpack.config.js",
+ "dev-server": "nodemon -w 'config/webpack.config.js' -w 'app/assets/javascripts/dispatcher.js' -w 'app/assets/javascripts/pages/**/index.js' --exec '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 .",