Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于.vue文件中背景图片路径,打包到生产环境路径404的问题修复 #6

Open
lss5270 opened this issue Aug 30, 2017 · 0 comments

Comments

@lss5270
Copy link
Owner

lss5270 commented Aug 30, 2017

原理很简单,在build目录下找到utils.js中的ExtractTextPlugin.extract({}),里面添加publicPath: '../../'

就可以轻松搞定生产环境背景图片404的问题,具体方法可以参考我的vue-admin-spa源码。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant