项目使用本地的包

在一个项目中使用本地打的包

----借助于nginx

  • 将打好的包(.js的文件)放到nginx的HTML文件夹下,创建一个叫做common 的文件(名字可能会有变化).
  • 修改conf配置。 添加一个location ^~ /common/common-menu.js{root html}                --------其实就是你刚才放的位置路径以及文件名字
  • 重载nginx
posted @ 2021-01-06 20:05  赛德·乌漆嘛黑  阅读(43)  评论(0编辑  收藏  举报