分享 / 2 / 1 / 创建于 5年前 / 更新于 5年前
config/index.js 当中的 assetsPublicPath 在 cli-3 当中并不存在 config,而是将其统一到 vue.config.js (与 src 文件夹同级,需自行创建) 配置当中
config/index.js
assetsPublicPath
module.exports = { devServer: { port: 8082, // 端口号 }, publicPath: '/vuejs-essential/dist/', // 重点在这里 }Copy
module.exports = { devServer: { port: 8082, // 端口号 }, publicPath: '/vuejs-essential/dist/', // 重点在这里 }
详情戳楼下
早些看讨论好了,前端新手纠结了一下午... 那就分享两个链接吧
vue.config.js
assetsDir
/
vue-cli3.0
我要举报该,理由是:
推荐文章: