S
S
Sergey Kondrashevsky2020-09-29 22:05:00
webpack
Sergey Kondrashevsky, 2020-09-29 22:05:00

How to convert images in webpack?

Good evening.
Please tell me how to make webpack in the dev assembly compile images only when I add a new image, and the one that I added. Also, so that the imagemin-webp-webpack-plugin plugin works in the same way , that is, it converts when I add a new one and the one that I added.
Here is my git repo with the build.
PS At this stage, the image conversion plugin slows down the assembly very much, each time you have to wait an average of 50 seconds. I tried to run the conversion plugin only in prod and everything seems to be fine, but I want to know if there is some way to do it in dev without any problems. I also encountered such a problem that Vs code is somehow buggy when the dev assembly is running, especially the index.html file.
Please help me to deal with these problems, otherwise I have been figuring it out for 3 days and have not achieved good results

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