Whenever something involves node or npm, my usual solution is to sit down and cry for a while. Your mileage may vary with that though.
Edit: I have no recommendations whatsoever regarding webpack, but phoenix 1.6 will be moving to esbuild. Here are a few links about it and dart_sass: