ng-annotate-webpack-plugin

webpack plugin that runs ng-annotate on your bundles

Usage no npm install needed!

<script type="module">
  import ngAnnotateWebpackPlugin from 'https://cdn.skypack.dev/ng-annotate-webpack-plugin';
</script>

README

ng-annotate-webpack-plugin

WebPack plugin that runs ng-annotate on your bundles

Based on ngmin-webpack-plugin

Usage

In webpack.config.js:

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

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

If you are looking for a loader instead of a plugin, use ng-annotate-loader instead