ng build のアセットコピー中にファイルの名前を変更しようとしています
これが私が使用したものですangular.json
:
"outputPath": "dist",
"assets": [
...,
{
"glob": "favicon-v1.png",
"input": "src/client",
"output": "/favicon.png"
},
...,
],
ファイルを作成する代わりdist/favicon.png
にng build
、dist/favicon.png/favicon-v1.png
.
ファイルの名前を変更することを拒否しているようです-常に使用したい名前のフォルダーを作成しfavicon.png
、元のファイルをその中に入れます。
期待される動作ですか?ソース管理でファイルfavicon-v1.png
の名前を変更する以外の回避策はありますか?favicong.png
私は使っている:
"@angular/cli": "^6.1.5"
"@angular/animations": "^6.0.1",
"@angular/common": "^6.0.1",
"@angular/compiler": "^6.0.1",
"@angular/core": "^6.0.1",
"@angular/forms": "^6.0.1",
"@angular/http": "^6.0.1",
"@angular/platform-browser": "^6.0.1",
"@angular/platform-browser-dynamic": "^6.0.1",
"@angular/router": "^6.0.1",
"@angular/upgrade": "^6.0.1",
更新: 同様のコードは、Angular 5 の angular-cli.json で正常に動作します。