我無法將標誌傳遞給ng生成。無法傳遞 - 生成 - ng標記生成
我有下一行: 「構建:AOT:PROD」: 「節點--max_old_space_size = 8092 ./node_modules/@angular/cli/bin/ng建立--aot --prod」
它只運行沒有標誌的構建。什麼可能是錯誤的?
我無法將標誌傳遞給ng生成。無法傳遞 - 生成 - ng標記生成
我有下一行: 「構建:AOT:PROD」: 「節點--max_old_space_size = 8092 ./node_modules/@angular/cli/bin/ng建立--aot --prod」
它只運行沒有標誌的構建。什麼可能是錯誤的?
試着改變標誌的位置。將ng build --aot --prod
更改爲ng build --prod --aot
。 GitHub上存在同樣的問題。
這裏是你的完整產品線:
"build:aot:prod": "node --max_old_space_size=8092 ./node_modules/@angular/cli/bin/ng build --prod --aot"
謝謝,但結果相同。 .. –
更新軟件包最新版本和故宮本身後 - 根據需要工作。
你可以試試'node --max_old_space_size = 8092 ./node_modules/@angular/cli/bin/ng build --aot = true --prod = true' – echonax
試過沒有運氣( –
)你不需要提供這兩個標誌 - 通過'-prod'打開AOT –