# useminpre

> generate blocks for usemin

Latest version **0.0.11** (published 2016-07-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install useminpre
pnpm add useminpre
yarn add useminpre
bun add useminpre
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.11 |
| Published | 2016-07-07 |
| First published | 2015-07-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | McLemore |
| Maintainers | mclemore |
| Keywords | gruntplugin, grunt-usemin, usemin, useminpre |

## Links

- npm: https://www.npmjs.com/package/useminpre
- Repository: https://github.com/McLemore/useminpre
- Homepage: http://git@github.com:McLemore/useminpre.git
- Issues: https://github.com/McLemore/useminpre/issues
- npm.io page: https://npm.io/package/useminpre

## Recent versions

- 0.0.11 (latest) — 2016-07-07
- 0.0.10 — 2016-07-07
- 0.0.9 — 2016-07-07
- 0.0.8 — 2015-07-23
- 0.0.7 — 2015-07-22
- 0.0.6 — 2015-07-21
- 0.0.5 — 2015-07-21
- 0.0.4 — 2015-07-21
- 0.0.3 — 2015-07-20
- 0.0.2 — 2015-07-20
- 0.0.1 — 2015-07-20

## README

# useminpre

+ A Grunt plugin
+ generate blocks for grunt-usemin 
+ block will be generated wraps around the script tags which are next to eachother 
+ block will be generated wraps around the link tags which are next to eachother 

## Getting Started
This plugin requires Grunt.

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 useminpre --save-dev
```

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

```js
grunt.loadNpmTasks('useminpre');
```

## The "useminpre" task

### Overview
In your project's Gruntfile, add a section named `useminpre` to the data object passed into `grunt.initConfig()`.

```js
grunt.initConfig({
  useminpre: {
    options: {
      // Task-specific options go here.
    },
    your_target: {
      // Target-specific file lists and/or options go here.
    },
  },
})
```

### Options

#### options.separator
Type: `String`
Default value: `',  '`

A string value that is used to do something with whatever.

#### options.punctuation
Type: `String`
Default value: `'.'`

A string value that is used to do something else with whatever else.

### Usage Examples

#### Default Options
In this example, the default options are used to do something with whatever. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result would be `Testing, 1 2 3.`

```js
grunt.initConfig({
  useminpre: {
    options: {},
    files: {
      'dest/default_options': ['src/testing', 'src/123'],
    },
  },
})
```

#### Custom Options
In this example, custom options are used to do something else with whatever else. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result in this case would be `Testing: 1 2 3 !!!`

```js
grunt.initConfig({
  useminpre: {
    options: {
      separator: ': ',
      punctuation: ' !!!',
    },
    files: {
      'dest/default_options': ['src/testing', 'src/123'],
    },
  },
})
```

## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).

## Release History
_(Nothing yet)_

## License
Copyright (c) 2015 McLemore. Licensed under the MIT license.

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