Skip to content
Snippets Groups Projects
Commit 4dd2c8ff authored by Antoine Lambert's avatar Antoine Lambert
Browse files

webpack-dev-server: Do not reload page when database file is modified

webpack-dev-server watches static files and will reload application in
the browser when one of them is modified.

However, we need to ignore sqlite3 database files used in development
mode as any HTTP request that modifies the database will trigger an
unexpected page reload.
parent 627ba79a
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,7 @@ module.exports = {
static: {
directory: path.resolve('./'),
watch: {
ignored: /(node_modules|.tox|.mypy)/
ignored: /(node_modules|.tox|.mypy|.*.sqlite3)/
}
},
// we do not use hot reloading here (as a framework like React needs to be used in order to fully benefit from that feature)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment