diff --git a/assets/config/webpack.config.development.js b/assets/config/webpack.config.development.js --- a/assets/config/webpack.config.development.js +++ b/assets/config/webpack.config.development.js @@ -114,9 +114,7 @@ // enable to serve static assets not managed by webpack static: { directory: path.resolve('./'), - watch: { - ignored: /(node_modules|.tox|.mypy|.*.sqlite3)/ - } + watch: false }, // we do not use hot reloading here (as a framework like React needs to be used in order to fully benefit from that feature) // and prefer to fully reload the frontend application in the browser instead @@ -124,6 +122,12 @@ historyApiFallback: true, headers: { 'Access-Control-Allow-Origin': '*' + }, + watchFiles: { + paths: ['assets/**/*', 'static/**/*', 'swh/web/**/*'], + options: { + ignored: /.*.sqlite3/ + } } }, // set entries to the bundles we want to produce diff --git a/package.json b/package.json --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "build-dev": "NODE_ENV=development webpack --config assets/config/webpack.config.development.js --color", "build-test": "NODE_ENV=test webpack --config assets/config/webpack.config.development.js --color", - "start-dev": "NODE_ENV=development nodemon --watch swh/web/api --watch swh/web/browse --watch swh/web/templates --watch swh/web/common --watch swh/web/settings --watch assets/config --ext py,html,js --exec \"webpack serve --config assets/config/webpack.config.development.js --color\"", + "start-dev": "NODE_ENV=development webpack serve --config assets/config/webpack.config.development.js --color", "build": "NODE_ENV=production webpack --config assets/config/webpack.config.production.js --color", "mochawesome": "mochawesome-merge cypress/mochawesome/results/*.json > cypress/mochawesome/mochawesome.json && marge -o cypress/mochawesome/report cypress/mochawesome/mochawesome.json", "eslint": "eslint -c assets/config/.eslintrc --fix assets/** cypress/integration/** cypress/plugins/** cypress/support/**", @@ -131,7 +131,6 @@ "mochawesome-merge": "^4.2.1", "mochawesome-report-generator": "^6.1.1", "node-sass": "^7.0.1", - "nodemon": "^2.0.15", "nyc": "^15.1.0", "optimize-css-assets-webpack-plugin": "^6.0.1", "postcss": "^8.4.12", @@ -175,4 +174,4 @@ "engines": { "node": ">=12.0.0" } -} +} \ No newline at end of file