vuejs-templates/webpack
在 GitHub 查看[Placeholder]: Clear up situation with assets paths in production for css-loader
Open
#1,021 创建于 2017年11月1日
enhancementhelp wanted
描述
We have had multiple issues like #208 (#563, #552 ) which seem to show that under specific circumstances the paths generated by url-loader/file-loader are wrong.
But to be perfectly honest, I wasn't able to wrap my head around it, especially when trying to thing about how to test the proposed solution of using relative paths under various circumstances:
- requiring assets in JS vs.in CSS
- working paths when using vue-router in 'history' mode
- working paths when using code-splitting
So If anyone can help shed some light on this and work out a robust solution, I'd be delighted.