在我的vue.config.js文件中,我将publicPath设置为'/ui'
我希望将其设置为ui
,除非存在环境变量,在这种情况下它应该使用该值。
我已经阅读了env模式文档,还看到您可以在config.js中使用计算变量,但是我不能完全正常工作。
//docs say i can read an envvar here
module.exports = {
publicPath: '/ui',
outputDir: '../myapp/wwwroot',
assetsDir: undefined,
runtimeCompiler: undefined,
productionSourceMap: undefined,
parallel: undefined,
css: undefined
}