Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

js, .d.ts and metadata file not generated #42

Open
ayyanar opened this issue Dec 18, 2017 · 0 comments
Open

js, .d.ts and metadata file not generated #42

ayyanar opened this issue Dec 18, 2017 · 0 comments

Comments

@ayyanar
Copy link

ayyanar commented Dec 18, 2017

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
}),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant