如何使用angular-cli
将../node_modules/swagger-ui/dist
复制到dist/swagger-ui
像。
"apps": [
{
"root": "src",
"outDir": "../../../target/www",
"assets": [
"assets",
{ "source":"../node_modules/swagger-ui/dist", "to":"swagger-ui"}
],
...
答案 0 :(得分:1)
使用angular-cli的最新版本,您可以在.angular-cli.json
文件中使用以下内容:
"assets": [
"assets",
"favicon.ico",
{ "glob": "**/*", "input": "../node_modules/swagger-ui-dist", "output": "./swagger-ui/" }
],