Packing relative path vue

After vue development, you need to build packaged into static files, the solution path problems arise

1. Modify the production environment references relative paths, open build / webpack.prod.conf.js

 output: increase publicPath: './'

Or modifications index.js config folder in 

assetsPublicPath:'./'

2. Modify the relative path css resource references, open build / utils.js, locate the following location

Increase  publicPath: '../../'  to

 

Guess you like

Origin blog.csdn.net/ange2017/article/details/92805338