- the project packages the dist file. After it is deployed to tomcat, it cannot be accessed. Change the"/"of assetsPublicPath to". /", the project can be accessed normally, but the picture always cannot be displayed .
- build parameters
// Template for index.html
index: path.resolve(__dirname, "../dist/index.html"),
// Paths
assetsRoot: path.resolve(__dirname, "../dist"),
assetsSubDirectory: "static",
assetsPublicPath: "./",
- Project structure
what is the reason why the picture hasn"t come out all the time?