Today we encountered a problem: webpack packaging hash remains the same, but every time you add mode, you can pack hash and change it. Why
output = {
path: outputDir,
filename: "[name].js?[hash]",
chunkFilename: "[name].js?[hash]"
}
later found that it would be better without adding mode,
const config = {
mode: process.env.NODE_ENV || "production",
devtool: "-sharpcheap-module-eval-source-map",
// ...
}