A fork of the original ngmin AngularJS dependency injection annotation minifier that preserves JavaScript comments during the minification process. Version 0.4.0 is the latest release. This package addresses issue #6 in the upstream grunt-ngmin repo by keeping comments intact, which some projects require for downstream tooling or documentation. It is functionally identical to ngmin except for comment preservation. The original ngmin is deprecated in favor of ng-annotate, and this fork should be treated as abandoned.
npm install ngmin-with-commentsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the package to minify an AngularJS file while preserving comments.
Replace with ng-annotate or use Babel/AngularJS plugin for annotation.
Use `require('ngmin-with-comments')` instead of ES imports.Ensure downstream tools are configured to handle comments or use a dedicated minifier.
Run `npm install ngmin-with-comments` and check package.json.
Use `const ngmin = require('ngmin-with-comments');`