Answer the question
In order to leave comments, you need to log in
Is it possible to exclude webpack from processing files?
Pictures are included in CSS, the paths of which in the sources do not match what is obtained during compilation, as a result, webpack does not allow me to write the paths normally:
- if I write the path to the image for the compiled version, then webpack cannot find it in the sources
- if I write the path before images for sources - compiled version cannot include images
How to exclude images from processing? They are perfectly distilled using CopyWebpackPlugin and I don’t need native webpack functionality in this case
Answer the question
In order to leave comments, you need to log in
Disabling image processing is not difficult, just remove this code
{
test: /\.(png|svg|jpg|gif)$/,
use: [
'file-loader'
]
},
if I prescribe the path to the image for the sources - the compiled version cannot connect the images. That is, an error is produced during compilation?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question