Set the background image, the picture can not display problem after build build, set publicPath

Set the background image, build after build problem can not display pictures

  PublicPath may be provided in the webpack.base.config.js;

  Modify the path publicPath about png file: "../../"

 

 

  After we use vue-cli create a project build production, the default will generate a large number of .map file, as shown below:

   Index.js find the file in the config folder, open and then find productionSourceMap, set it to false.

Guess you like

Origin www.cnblogs.com/jiayeyuan/p/12208005.html