npm.io
0.0.3 • Published 4 years ago

ng-annotate-webpack-plugin-patched

Licence
MIT
Version
0.0.3
Deps
2
Size
5 kB
Vulns
0
Weekly
0

ng-annotate-webpack-plugin-patched

WebPack plugin that runs ng-annotate-patched on your bundles

Fork of ng-annotate-webpack-plugin

Usage

In webpack.config.js:

var webpack = require('webpack');
var ngAnnotatePlugin = require('ng-annotate-webpack-plugin-patched');

module.exports = {
    /// ... rest of config
    plugins: [
        new ngAnnotatePlugin()
    ]
}

To modify the default plugin options or to add options for ng-annotate:

var webpack = require('webpack');
var ngAnnotatePlugin = require('ng-annotate-webpack-plugin-patched');

module.exports = {
    /// ... rest of config
    plugins: [
        new ngAnnotatePlugin({
            add: true,
            // other ng-annotate options here
        })
    ]
}

Keywords