search

Home  >  Q&A  >  body text

javascript - The image path packaged by webpack reports a 404 error

1. For the vue2 project, the files packaged by webpack can be displayed when I browse the images locally, but they cannot be displayed on the server. The image path addresses are exactly the same.
As shown in the picture:
Picture 1 is local, Picture 2 is on the server

扔个三星炸死你扔个三星炸死你2746 days ago603

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-06-12 09:29:54

    Post the code there in <img>

    reply
    0
  • ringa_lee

    ringa_lee2017-06-12 09:29:54

    1. Confirm whether the file is included in the build output
    2. Confirm whether the modified file has been copied to the server
    3. Finally, if there is no problem, confirm whether the directory is readable.

    reply
    0
  • Cancelreply