建 vue.config.js 文件
module.exports = {
publicPath: "./",
productionSourceMap: false,
assetsDir: "./assets",
};
路由修改配置
const router = new VueRouter({
// mode: "history",
base: process.env.BASE_URL,
routes,
});
先记录,后续有时间再进行完善
建 vue.config.js 文件
module.exports = {
publicPath: "./",
productionSourceMap: false,
assetsDir: "./assets",
};
路由修改配置
const router = new VueRouter({
// mode: "history",
base: process.env.BASE_URL,
routes,
});
先记录,后续有时间再进行完善
本文标题:Vue-cli 3 项目打包
本文链接:https://www.haomeiwen.com/subject/ltfcxktx.html
网友评论