(一)、利用node.js的 http-server搭建一个http服务器
http-server是一个基于node.js的简单的,零配置的命令行http服务器
安装
全局安装 http-server,这样就可以在任意一个本地项目中使用了。
npm install http-server -g
使用
http-server

在vue-cli的默认配置中, 把assetsPublicPath: '/'改成assetsPublicPath: './',

(二)、iview字体路径报错
在 build/webpack.prod.conf.js 中,将

里边的 extract改为false,默认是true
网友评论