{"library":"ngc-webpack","title":"ngc-webpack","description":"A wrapper around @ngtools/webpack that adds hooks into the Angular AOT compilation process and supports library mode compilation for Angular libraries, enabling resource inlining (SCSS, LESS) and webpack loader chains. Current version 4.1.2 targets Angular 5 and requires @angular/compiler-cli ^5.0.0 and @ngtools/webpack ^1.8.0. The key differentiator from @ngtools/webpack is its library mode for publishing Angular packages, its extensible hook system, and the ability to use a custom TypeScript loader for JIT mode. It is now in maintenance mode; users are generally advised to use @ngtools/webpack directly for application builds unless library compilation is needed. Release cadence is low; last release was 2018.","language":"javascript","status":"maintenance","last_verified":"Sat Apr 25","install":{"commands":["npm install ngc-webpack"],"cli":null},"imports":["import { NgcWebpackPlugin } from 'ngc-webpack'","import { NgcWebpackPluginOptions } from 'ngc-webpack'","import { NgcWebpackLoader } from 'ngc-webpack'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// webpack.config.js\nconst { NgcWebpackPlugin } = require('ngc-webpack');\n\nmodule.exports = {\n  entry: './src/main.ts',\n  module: {\n    rules: [\n      {\n        test: /(?:\\.ngfactory\\.js|\\.ngstyle\\.js|\\.ts)$/,\n        use: [\n          { loader: '@ngtools/webpack' }\n        ]\n      }\n    ]\n  },\n  plugins: [\n    new NgcWebpackPlugin({\n      tsConfigPath: './tsconfig.json',\n      mainPath: './src/main.ts'\n    })\n  ]\n};","lang":"javascript","description":"Basic webpack configuration using NgcWebpackPlugin as a replacement for @ngtools/webpack AngularWebpackPlugin.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}