vue+node+express个人博客部署到nginx
1、vue打包
个人博客页面大概的架子已经搭起来了,打包部署到centos服务器看一下效果。
module.exports = {
publicPath: './', // 设置打包文件相对路径 (默认是没有“ . ”的,打包后路径不对,打开网页空白。需要加上 .)
devServer: {
// open: true, //配置自动启动浏览器
proxy: {
'/api': {
target: 'h
原创
2020-07-06 15:27:13 ·
414 阅读 ·
0 评论