When changing any of the JS or CSS files, symfony expects to rebundle (apparently?) which means that we must run the
./node_modules/.bin/encore production command. But if this is run inside the current docker web shell, it doesn't recognize npm and doesn't have node_modules folder.
Sidebar: Is it possible to work with the JS files directly while debugging in symfony/webpack? It is very useful to add debugger statements, and webpack's bundling removes those anyways. Maybe we can find a good way to have that in the dev environment, or am I missing an already existing way?