ng-annotate-loader
Webpack loader to annotate angular applications. Generates a sourcemaps as well.
Usage:
module: {
loaders: [
{test: /src.*\.js$/, loaders: ['ng-annotate']},
]
}
Passing parameters:
{test: /src.*\.js$/, loaders: ['ng-annotate?add=false&map=false']}
More about ng-annotate
parameters
Using ng-annotate plugins:
{test: /src.*\.js$/, loaders: ['ng-annotate?plugin[]=ng-annotate-adf-plugin']}
babel
for example:
Works great with js compilers, {test: /src.*\.js$/, loaders: ['ng-annotate', 'babel-loader']},