小编Aak*_*hah的帖子

ng build --prod index.html 文件没有生成后?

在生产模式下构建项目后,我将 Angular 7 更新为 8.2.1,dist 文件夹不生成index.html文件

tsconfig.json

{
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "module": "esnext",
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es5",
    "paths": {
      "exceljs": [
        "node_modules/exceljs/dist/exceljs.min"
      ]
    },
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2018",
      "dom"
    ],

  }
}
Run Code Online (Sandbox Code Playgroud)

分布/AssetMang/ 角度.json

{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  "version": 1,
  "newProjectRoot": "projects",
  "projects": {
    "AssetMang": {
      "root": "",
      "sourceRoot": "src",
      "projectType": "application",
      "prefix": "app",
      "schematics": {},
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": { …
Run Code Online (Sandbox Code Playgroud)

typescript angular

10
推荐指数
1
解决办法
6082
查看次数

标签 统计

angular ×1

typescript ×1