K
K
kirillgenets2019-11-19 17:22:03
Images
kirillgenets, 2019-11-19 17:22:03

Not copying images from components to React using copy-webpack-plugin. How to setup?

Can't transfer images from img folders inside component folders to dist using copy-webpack-plugin. Here is how I write it:

new CopyWebpackPlugin([
      { from: '**/img/*', to: 'img' }
    ])

Here is my file structure:
5dd3fa79d60bd669600955.png

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