NuxtJS 托管静态资源

252次阅读
没有评论

NuxtJS将资源分为assets\public,

其实无论放在assets目录还是public目录,都是需要重新build的,路由才能够生效。

然后重启服务:

pm2 reload app-name

正文完
 0
wujingquan
版权声明:本站原创文章,由 wujingquan 于2023-08-24发表,共计95字。
转载说明:Unless otherwise specified, all articles are published by cc-4.0 protocol. Please indicate the source of reprint.
评论(没有评论)