会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
浮生若夢♬為歡幾何
Always put yourself in the other's shoes.If you feel that it hurts you,it probably hurts others,too.
博客园
首页
新随笔
联系
订阅
管理
2018年9月2日
[Vuejs] webpack+vue-cli打包如何引用相对路径
摘要: 默认情况下通过webpack+vuec-li打包的css、js等资源,路径都是绝对的,即static在根目录下,假如部署到带有文件夹目录的项目中,资源路径就会出错,如何解决。 1.修改资源引用相对路径,打开build/webpack.prod.conf.js 找到27行 output:增加publi
阅读全文
posted @ 2018-09-02 23:08 晏过留痕
阅读(5014)
评论(0)
推荐(0)
编辑