资产未以角度方式复制到dist文件夹

时间:2018-05-22 11:35:49

标签: angular

运行ng build --prod时,不会复制“assets”文件夹。

"root": "src",
  "outDir": "dist",
  "assets": [
    "assets",
    "favicon.ico"
  ],

我的环境

Angular CLI: 1.7.4
Node: 8.11.2
OS: win32 x64
Angular: 5.2.11

由于

1 个答案:

答案 0 :(得分:0)

use like below
"root": "./src",
      "outDir": "dist",
      "assets": [
        "assets",
        "favicon.ico"
      ],