啟用 熱模組替換,也稱為 HMR。
啟用 HMR 很簡單,而且在多數情況下不需要任何選項。
new webpack.HotModuleReplacementPlugin({ // Options... });