Using Angular-CLI build to copy a file / directory

后端 未结 2 958
太阳男子
太阳男子 2021-02-02 11:26

Is there a way to make angular-cli\'s ng buil --prod command to also copy a file/directory to the dist folder?

My project includes a \"server\" folder, and

2条回答
  •  闹比i
    闹比i (楼主)
    2021-02-02 11:35

    On your angular-cli.json on assets object add the folders you want to include like:

    Note : For Angular 9, this should be placed on angular.json file

    "assets": [
        "assets",
        "favicon.ico",
        "META-INF",
        "WEB-INF"
      ]
    

提交回复
热议问题