chore: Reduce idle CPU usage in development

This commit is contained in:
Tom Moor
2021-07-16 09:30:43 -04:00
parent d7a21db72f
commit 25907f5c72
2 changed files with 4 additions and 7 deletions

View File

@@ -10,7 +10,7 @@
"build:webpack": "webpack --config webpack.config.prod.js",
"build": "yarn clean && yarn build:webpack && yarn build:i18n && yarn build:server",
"start": "node ./build/server/index.js",
"dev": "nodemon --exec \"yarn build:server && yarn build:i18n && node --inspect=0.0.0.0 build/server/index.js\" -e js --ignore build/ --ignore app/",
"dev": "nodemon --exec \"yarn build:server && yarn build:i18n && node --inspect=0.0.0.0 build/server/index.js\" -e js --ignore build/ --ignore app/ --ignore flow-typed/",
"lint": "eslint app server shared",
"deploy": "git push heroku master",
"postinstall": "yarn yarn-deduplicate yarn.lock",
@@ -212,4 +212,4 @@
"js-yaml": "^3.13.1"
},
"version": "0.57.0"
}
}

View File

@@ -74,12 +74,9 @@ if (isProduction) {
// display nothing to the console
quiet: false,
// switch into lazy mode
// that means no watching, but recompilation on every request
lazy: false,
watchOptions: {
ignored: ["node_modules"],
poll: 1000,
ignored: ["node_modules", "flow-typed", "server", "build", "__mocks__"],
},
// public path to bind the middleware to