vue打包

作者: 程序猿的小生活 | 来源:发表于2022-07-19 09:18 被阅读0次

1.使用 npm run build # 命令打包

  1. 如果出现 DONE Build complete. The dist directory is ready to be deployed. 即打包成功
    3.项目工程根木下的dist文件夹下面资源就是打包后的资源
    4.dist中的index.html即打包后入口界面,放在服务器访问
    5.如果点击index.js出现Failed to load resource: net::ERR_FILE_NOT_FOUND问题
    请在index.html中找到例如:/j/app.798e0270.js等路径 改为 ./js/app.798e0270.js路径
    即:路径最开始的/改为./

相关文章

网友评论

      本文标题:vue打包

      本文链接:https://www.haomeiwen.com/subject/akujirtx.html