T
T
thehighhomie2018-06-10 15:45:36
Node.js
thehighhomie, 2018-06-10 15:45:36

Webpack: can resolve-url-loader be combined with any plugin that copies files?

For example, views are not tracked by webpack (let's say these are wordpress php files), absolute urls for images are written in views. So, not only does resolve-url-loader copy images from styles, copy-webpack-plugin also copies all files. When building, I see in the console that copying is repeated: files are copied using the copy-webpack-plugin and from styles (resolve-url-loader). I would like to remove unnecessary copying.
Can this be configured somehow? I looked at https://github.com/roots/sage as a suitable example but did not understand how it works.
I would not want to abandon the resolve-url-loader and write all the paths to the build folder, I would like to combine ...

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