vue-cli写完的静态页面我们在node环境中引入没有问题,但是打包后放在Apache环境下,路径却有问题了.
如一个简单css语句
1 | .welcome { width: 420px; height: 235px; background: url(../img/welcome.jpg) 0 0 no-repeat; |
但是打包后路径成了却出现404访问不到的问题。
解决的办法很简单
build路径下utils.js文件
1 | // Extract CSS when that option is specified |
(完)