我有一个项目,其中的模拟json数据分散在不同的模块中。我正在尝试使用angular.json配置文件将所有json数据显示在构建中。
我要定位的路径示例列表:
System.Data.SqlClient.SqlException (0x80131904): Snix_Connect (provider: SNI_PN7, error: 35 - SNI_ERROR_35)Snix_Connect (provider: SNI_PN7, error: 35 - SNI_ERROR_35)
现在,我只是使用angular.json获取该项目中每个模块的资产文件。
/app/app-mock-data/**
/feature-module/feature-module-mock-data/**
/pages/page-module/page-module-mock-data/**
/other/other-module/other-module-mock-data/**
/nested/nested-module/further-nested-module/futher-nested-module-mock-data/**
是否有任何全局模式可以让我以// --configuration=mock
{
"assets": [
"src/assets",
"src/favicon.ico",
"src/favicon.png",
{
"glob": "**/* ",
"input": "src/app/app-mock-data",
"output": "/mock-assets/app-mock-data"
},
{
"glob": "**/*",
"input": "src/app/feature-module/feature-module-mock-data",
"output": "/mock-assets/feature-module-mock-data"
},
{
"glob": "**/* ",
"input": "src/app/pages/page-module/page-module-mock-data",
"output": "/mock-assets/page-module-mock-data"
},
{
"glob": "**/* ",
"input": "src/app/other/other-module/other-module-mock-data",
"output": "/mock-assets/other-module-mock-data"
},
{
"glob": "**/* ",
"input": "src/app/nested/nested-module/further-nested-module/futher-nested-module-mock-data",
"output": "/mock-assets/futher-nested-module-mock-data"
}
]
}
作为文件夹前缀递归获取文件夹中的所有项目?
*-mock-data