#set $host 'y.qq.com'; proxy_redirect off; #root html/dist; #index index.html index.htm; proxy_pass https://c.y.qq.com/splcloud/fcgi-bin/fcg_get_diss_by_tag.fcg; proxy_set_header Host y.qq.com; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $pr...
1. 在本项目总安装webpack-dev-server 2. devServer配置中设置hot: true 3. plugins配置中设置new webpack.HotModuleReplacementPlugin() 4. output配置中设置publicPath: 'http://localhost:8188/dist/js/' 5. devServer配置中设置header允许跨域访问 6. 模块中设置接受热替换module.hot.accept() 7. 不要在...