我有一个多页面应用程序,我需要一些页面仅在我的开发环境中显示。这是我的 vue.config.js:
module.exports = {
productionSourceMap: false,
pages: {
index: "src/main.js",
admin: {
entry: "src/main-admin.js",
template: "public/index.html",
filename: "admin"
}
}
};
我需要索引页面才能进入我的生产版本,但要从中删除管理员。有没有一种方法可以在 vue.config.js 上添加环境条件配置,或者为每个环境添加一个 vue.config.js?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号