1

When I run my vue.js project in dev mode, all images are loaded properly but after npm run build, some images are missing because they are not in the generated dist folder.

Some images got transfered but not all. I don't get the reason why the images which are in the dist folder are in the folder and the others not. Anybody an idea what could be the reason for this problem?

This is my webpack.confi.js file

 {
    test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
    loader: 'url-loader',
    options: {
      limit: 10000,
      name: utils.assetsPath('img/[name].[hash:7].[ext]')
    }
  },

This is the html file

<img src="/static/img/name.883d0fb.png" id="name">
lseltt
  • 25
  • 5
  • Please show us the relevant code for at least *1* image file that is **not** included, and also the relevant code for at least *1* image that **is** included. – Ohgodwhy Jun 24 '19 at 15:40
  • Have you changed the webpack configuration created with Vue cli ? – Emmanuel Demey Jun 24 '19 at 21:05

0 Answers0