vuejs-templates/webpack

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

Open

#1021 aperta il 1 nov 2017

Vedi su GitHub
 (6 commenti) (3 reazioni) (0 assegnatari)JavaScript (4466 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (9721 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor