D
D
Denis Bukreev2018-05-23 09:09:30
webpack
Denis Bukreev, 2018-05-23 09:09:30

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

1 answer(s)
D
Daniil Sugonyaev, 2018-05-23
@denisbookreev

Disabling image processing is not difficult, just remove this code

{
                test: /\.(png|svg|jpg|gif)$/,
                use: [
                    'file-loader'
                ]
            },

But this is a bad decision, you will have to fiddle with crutches. You are clearly misconfiguring the processing. Attach your config file.
And explain your second point
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 question

Ask a Question

731 491 924 answers to any question