Answer the question
In order to leave comments, you need to log in
Which webpack5 plugin is capable of rewriting links in css/scss?
There is a problem - in the webpack 5 build that I use, in the css output, the paths for relative links start with /
, but they need to start with ./
.
In the assembly, for convenience, I use the alias @.
After assembly , it changes to , as far as I understand, this is done by css-loader, but it needs to change to
Help with advice, is there a suitable plugin that can help me?
url(@/fonts/ptsansbold.woff)
url(/fonts/ptsansbold.woff)
url(./fonts/ptsansbold.woff)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question