In the vue project, some pictures are relatively large, as a result, the path of these pictures is wrong after packaging, but it is good under dev, how to solve it?

I found a solution, which is to change the value of limit in webpack.base.conf.js from 10000 to 1000000, but it doesn"t feel like an appropriate method. What should I do?


Project pictures can be placed on cdn. Citing url, can reduce the project volume


you are changing the webpack configuration. Copy the webpack configuration here in a new project.


is the problem of the webpack configuration, not the vue, but the publicPath of the configuration, which leads to the failure of loading your image

.
Menu