# grunt-ngmin

> Grunt task for minifying AngularJS projects

Latest version **0.0.3** (published 2013-07-02) · BSD license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install grunt-ngmin
pnpm add grunt-ngmin
yarn add grunt-ngmin
bun add grunt-ngmin
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2013-07-02 |
| First published | 2013-02-25 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 170 |
| Author | Brian Ford |
| Maintainers | btford, geddski |
| Keywords | grunt, angular, angularjs, minify |

## Links

- npm: https://www.npmjs.com/package/grunt-ngmin
- Repository: https://github.com/btford/grunt-ngmin
- Issues: https://github.com/btford/grunt-ngmin/issues
- npm.io page: https://npm.io/package/grunt-ngmin

## Dependencies (1)

- [ngmin](https://npm.io/package/ngmin.md) ~0.4.0

## Recent versions

- 0.0.3 (latest) — 2013-07-02
- 0.0.2 — 2013-03-14
- 0.0.1 — 2013-02-25

## README

#grunt-ngmin

Grunt plugin for pre-minifying Angular apps. Learn why this is awesome by reading up on the [ngmin](https://github.com/btford/ngmin) cli tool.

## Getting Started
This plugin requires Grunt `~0.4.0`

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-ngmin --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-ngmin');
```

## ngmin task
_Run this task with the `grunt ngmin` command._

Task targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide.

### Example

```js
ngmin: {
  controllers: {
    src: ['test/src/controllers/one.js'],
    dest: 'test/generated/controllers/one.js'
  },
  directives: {
    expand: true,
    cwd: 'test/src',
    src: ['directives/**/*.js'],
    dest: 'test/generated'
  }
},
```

##Running the Tests
Run `grunt test`.

## License
BSD

---
_Source: https://npm.io/package/grunt-ngmin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
