vuejs-templates/webpack

[Placeholder]: Clear up situation with assets paths in production for css-loader

Open

#1,021 创建于 2017年11月1日

在 GitHub 查看
 (6 评论) (3 反应) (0 负责人)JavaScript (9,721 star) (4,466 fork)batch import
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.

贡献者指南

[Placeholder]: Clear up situation with assets paths in production for css-loader · vuejs-templates/webpack#1021 | Good First Issue