我有一个带有许多库的angular-cli。要包含这些许可,我在构建中包含LICENSE
中的所有package.json
和node_modules
个文件。
"assets": [
{
"glob": "**/package.json",
"input": "../node_modules/",
"output": "./licenses"
},
{
"glob": "**/LICENSE*",
"input": "../node_modules/",
"output": "./licenses"
}
]
但是,这会在输出中添加约4000个单独的文件,并为构建和上传增加时间,而某些库是源中未使用的构建/开发工具。我打算在预构建过程中将许可证压缩为快速解决方案。
这似乎是一个常见问题。是否有一个智能工具,以某种方式打包,只使用已使用的许可证?