Webpack aot构建无法搜索ngfactory文件

时间:2018-07-23 12:32:45

标签: javascript angular

以下是我的tsconfig

{
  "compileOnSave": false,
  "buildOnSave": false,
  "compilerOptions": {
    "declaration": true,
    "target": "es5",
    "module": "es2015",
    "moduleResolution": "node",
    "lib": ["es2015", "dom"],
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "noImplicitAny": false,
    "sourceMap": true,
    "outDir":"./aot",
    "rootDir" : ".",
    "strictPropertyInitialization": false
  },
  "exclude": [
    "node_modules",
    "dist"
  ]
}

使用angular 6.0.3和@ ngtools / webpack 1.10.2

相同的配置适用于angular 5.1.0

0 个答案:

没有答案