You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

ng-annotate-loader

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-annotate-loader

Webpack loader that runs ng-annotate on your bundles

0.7.0
latest
Source
npm
Version published
Weekly downloads
41K
11.38%
Maintainers
1
Weekly downloads
 
Created
Source

ng-annotate-loader Build Status

Webpack loader to annotate angular applications. Generates a sourcemaps as well.

Installation

npm install --save-dev ng-annotate-loader

Usage:

module: {
  loaders: [
    {
      test: /src.*\.js$/,
      use: [{ loader: 'ng-annotate-loader' }],
    }
  ]
}
Passing parameters:
{
  test: /src.*\.js$/,
  use: [
    {
      loader: 'ng-annotate-loader',
      options: {
        add: false,
        map: false,
      }
    }
  ]
}

More about ng-annotate parameters

Using ng-annotate plugins:
{
  test: /src.*\.js$/,
  use: [
    {
      loader: 'ng-annotate-loader',
      options: {
        plugin: ['ng-annotate-adf-plugin']
      }
    }
  ]
}
Using a fork of ng-annotate:
{
  test: /src.*\.js$/,
  use: [
    {
      loader: 'ng-annotate-loader',
      options: {
        ngAnnotate: 'my-ng-annotate-fork'
      }
    }
  ]
}
Works great with js compilers, babel for example:
{
  test: /src.*\.js$/,
  use: [
    { loader: 'ng-annotate-loader' },
    { loader: 'babel-loader' },
  ]
},

Contributing

Compiling examples and run acceptance test

Run on the root folder:

npm install
npm test

Using loaders

Keywords

webpack

FAQs

Package last updated on 10 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts