-
Notifications
You must be signed in to change notification settings - Fork 14
Description
I am creating the library using angular 5. I use the ngc-webpack 4.1.2 . When i run the aot build, I dont see the individual metadata, .js, .d.ts files generated to the outDir. I would like my dist folder to be AOT and JIT compatible.
Here is the tsconfg file.
"angularCompilerOptions": {
"genDir": "./compiled",
"strictMetadataEmit": true,
"skipTemplateCodegen": true
},
"compilerOptions": {
"moduleResolution": "node",
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"outDir": "./dist/lib",
"rootDir": "./src/lib",
"lib": [ "es2015", "dom" ],
"target": "es5",
"types": ["node"],
"module": "es2015",
"sourceMap": true,
"stripInternal": true
},
"files": [
"./src/lib/index.ts"
],
This is how i call the plugin in webpack configuration.
{
test: /(?:.ngfactory.js|.ngstyle.js|.ts)$/,
use: [ '@ngtools/webpack' ]
},
new ngcWebpack.NgcWebpackPlugin({
AOT: true, // alias for skipCodeGeneration: false
tsConfigPath: 'tsconfig.ngc.json',
sourceMap: true
}),