<commit_before># Testing grunt-usemin v2.0

This a CLEAN test project created with generator-angular v0.3.1 to support the issue [#108](https://github.com/yeoman/grunt-usemin/issues/108) of grunt-usemin.

## Code changes

* Uglify task has been commented in Gruntfile... Otherwise the project won't build when using grunt-usemin v2.0 dependency.
* Added the images `logoPhune.png` and `logoPhune@2x.png` to the images folder.
* The following lines have been added to the file `app/views/main.html`:

```html
<img src="/images/logoPhune.png" srcset="/images/logoPhune@2x.png 2x" alt="Phune Gaming" width="71" height="23" />
<img src="images/logoPhune.png" srcset="images/logoPhune@2x.png 2x" alt="Phune Gaming" width="71" height="23" />
```

## Project build

Install NPM and Bower dependencies:

```
npm install && bower install --dev
```

Create and build the project with grunt-usemin v0.1.12:

```
grunt
```

Resulting `<img>` tags in the file `dist/views/main.html`:

```html
<img src="/images/0b1f0a13.logoPhune.png" srcset="/images/logoPhune@2x.png 2x" alt="Phune Gaming" width="71" height="23">
<img src="images/logoPhune.png" srcset="images/logoPhune@2x.png 2x" alt="Phune Gaming" width="71" height="23">
```

Update to grunt-usemin v2.0:

```
npm install grunt-usemin-2.0 --save-dev
```

Create and build the project with grunt-usemin v2.0:

```
grunt
```

Resulting `<img>` tags in the file `dist/views/main.html`:

```html
<img src="/images/logoPhune.png" srcset="/images/logoPhune@2x.png 2x" alt="Phune Gaming" width="71" height="23">
<img src="images/logoPhune.png" srcset="images/logoPhune@2x.png 2x" alt="Phune Gaming" width="71" height="23">
```<commit_msg>Add solution to README.md file<commit_after># Testing grunt-usemin v2.0

This a CLEAN test project created with generator-angular v0.3.1 to support the issue [#108](https://github.com/yeoman/grunt-usemin/issues/108) of grunt-usemin.

## Code changes

* Uglify task has been commented in Gruntfile... Otherwise the project won't build when using grunt-usemin v2.0 dependency.
* Added the images `logoPhune.png` and `logoPhune@2x.png` to the images folder.
* The following lines have been added to the file `app/views/main.html`:

```html
<img src="/images/logoPhune.png" srcset="/images/logoPhune@2x.png 2x" alt="Phune Gaming" width="71" height="23" />
<img src="images/logoPhune.png" srcset="images/logoPhune@2x.png 2x" alt="Phune Gaming" width="71" height="23" />
```

## Project build

Install NPM and Bower dependencies:

```
npm install && bower install --dev
```

Build the project with grunt-usemin v0.1.12:

```
grunt
```

Resulting `<img>` tags in the file `dist/views/main.html`:

```html
<img src="/images/0b1f0a13.logoPhune.png" srcset="/images/logoPhune@2x.png 2x" alt="Phune Gaming" width="71" height="23">
<img src="images/logoPhune.png" srcset="images/logoPhune@2x.png 2x" alt="Phune Gaming" width="71" height="23">
```

Update to grunt-usemin v2.0:

```
npm install grunt-usemin-2.0 --save-dev
```

Build the project with grunt-usemin v2.0:

```
grunt
```

Resulting `<img>` tags in the file `dist/views/main.html`:

```html
<img src="/images/logoPhune.png" srcset="/images/logoPhune@2x.png 2x" alt="Phune Gaming" width="71" height="23">
<img src="images/logoPhune.png" srcset="images/logoPhune@2x.png 2x" alt="Phune Gaming" width="71" height="23">
```

## Solution

In `Gruntfile.js`, rename usemin option `dirs` to `assetsDirs`.

Build the project with grunt-usemin v2.0 again:

```
grunt
```

Resulting `<img>` tags in the file `dist/views/main.html`:

```html
<img src="/images/0b1f0a13.logoPhune.png" srcset="/images/logoPhune@2x.png 2x" alt="Phune Gaming" width="71" height="23">
<img src="images/0b1f0a13.logoPhune.png" srcset="images/logoPhune@2x.png 2x" alt="Phune Gaming" width="71" height="23">
```
{'fraction_non_alphanumeric': 0.16824644549763032, 'fraction_numerical': 0.040547656661400734, 'mean_word_length': 5.0493630573248405, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 22, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 16, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2289142', 'n_tokens_mistral': 1521, 'n_tokens_neox': 1393, 'n_words': 365}