* build --> webpack.prod.conf.js --> UglifyJsPlugin添加關於mangle的選項
mangle: { safari10: true }
* 打包好的index.html放到服務器里去的時候,index.html在服務器端可能是有緩存的,這需要在服務器配置不讓緩存index.html
* nginx 配置如下
location = /index.html {
add_header Cache-Control "no-cache, no-store";
}
