G
G
GF2020-10-10 01:14:06
JavaScript
GF, 2020-10-10 01:14:06

How to set an alias for paths in html using webpack?

With webpack, you can create aliases for imports in css and js, but how to do it for html? Is this even possible? Google doesn't find anything :|
Desired functionality
<img src="@images/photo.jpg" />

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question