在package.json 中添加

"scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "buildTest": "ng build --build--optimizer --aot ",
    "buildProd":"node --max-old-space-size=8000 node_modules\\@angular\\cli\\bin\\ng build --prod --build--optimizer --aot",
    "e2e": "ng e2e"
  },

  

"buildProd":"node --max-old-space-size=8000 node_modules\\@angular\\cli\\bin\\ng build --prod --build--optimizer --aot",

使用
npm run buildProd

相关文章:

  • 2022-12-23
  • 2021-09-24
  • 2021-05-20
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
猜你喜欢
  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
相关资源
相似解决方案