4
私は角度2 CLIで角度2アプリケーションを生成しました。 index.htmlファイルで#各scripts.polyfillsは誰から来ていますか?
ようなものです:アプリケーションがCLIコマンドを使用して構築された場合
{{#each scripts.polyfills}}
<script src="Application/{{.}}"></script>
{{/each}}
'NGビルド' のindex.htmlの出力は次のとおりです。今
<script src="Application/vendor/scripts1.js"></script>
<script src="Application/vendor/scripts2.js"></script>
<script src="Application/vendor/scripts3.js"></script>
私はあなたにどこにいるのか聞いてきます。
とscripts.polyfillsは角2アプリを作成し、私のCLIで定義されたオブジェクトである
。「スクリプト」という名前のフォルダ/変数はどこにも見つかりません。
私はちょうどangular2-トースターをインポートしようとしました。 404エラーを投げています。 angle2-toaster.jsでなければならないindex.jsを取得するのは奇妙です。 http:// localhost:4200/vendor/angular2-toaster/index.js – Tun