有没有办法将注释添加到proxy.config.json



寻找一种将注释添加到proxy.config.json的方法。

我尝试了//和#,但是在运行NG服务时都会导致错误。

"/uritocommentout*":{
        "target": "http://localhost:8080/",
        "secure": false,
        "logLevel": "debug"
    },

只想在开发中评论一些映射

json都应该是数据,如果您包括评论,则它也将是数据。

您可以做的是使用_开始一些字段,当您解析它们时,请忽略它们作为注释。喜欢:

{
    "_comment" : "This is a comment",
    "msg" : "This is data"
}

最新更新