browserify-ngannotate v2.0.0
browserify-ngannotate
A browserify transform that uses ng-annotate to add dependency injection annotations to your AngularJS source code, preparing it for minification.
Usage
browserify -t browserify-ngannotate app.js > bundle.jsOptions
Provided options are passed through to ng-annotate. The add option defaults
to true.
For example, to remove annotations, one could use the following:
browserify -t [ browserify-ngannotate --no-add --remove ] app.js > bundle.jsSource maps
Sourcemapping will be enabled automatically when browserify is in debug mode:
browserify --debug -t browserify-ngannotate app.js > bundle.jsFile extensions
Define the filetypes to transform. Prevents other resouces like .json or .css from being processed, if you are including them with require().
This is done using the --x or --ext transform options:
browserify -t [ browserify-ngannotate --x .coffee ] app.js > bundle.jsThe above example will only annotate .js and .coffee files, ignoring the rest.
Install
npm install browserify-ngannotate --saveLicense
MIT
10 years ago
10 years ago
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
12 years ago
12 years ago
12 years ago
12 years ago