我如何复制" ../ node_modules / swagger-ui / dist"与angular-cli

时间:2017-01-25 09:20:15

标签: angular angular-cli swagger-ui

如何使用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"}
          ],

...

1 个答案:

答案 0 :(得分:1)

使用angular-cli的最新版本,您可以在.angular-cli.json文件中使用以下内容:

"assets": [
  "assets",
  "favicon.ico",
  { "glob": "**/*", "input": "../node_modules/swagger-ui-dist", "output": "./swagger-ui/" }
],