# elixir-modernizr

> Scan your resources and generate a custom Modernizr build for your app.

Latest version **1.0.0** (published 2016-04-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install elixir-modernizr
pnpm add elixir-modernizr
yarn add elixir-modernizr
bun add elixir-modernizr
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-04-15 |
| First published | 2016-04-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Kyle Anderson |
| Maintainers | divspace |
| Keywords | elixir, gulp, laravel, modernizr |

## Links

- npm: https://www.npmjs.com/package/elixir-modernizr
- Repository: https://github.com/divspace/elixir-modernizr
- Issues: https://github.com/divspace/elixir-modernizr/issues
- npm.io page: https://npm.io/package/elixir-modernizr

## Dependencies (1)

- [gulp-modernizr](https://npm.io/package/gulp-modernizr.md) ^1.0.0-alpha

## Recent versions

- 1.0.0 (latest) — 2016-04-15

## README

# Laravel Elixir Modernizr

Laravel Elixir **3.0+** extension that uses [gulp-modernizr](https://github.com/doctyper/gulp-modernizr)
to crawl your app and build a custom [Modernizr](http://modernizr.com/) file with only the tests
you're actually using.

## Install

```
npm install elixir-modernizr --save-dev
```

Throw it into your Elixir mix:

```javascript
var Elixir = require('laravel-elixir');

require('elixir-modernizr');

Elixir(function(mix) {
    ...
    mix.modernizr();
    ...
});
```

## Options

### Sources

Array of globs to scan for Modernizr tests.

**Default:** Assuming default Elixir paths, it would scan `public/js/**/*.js` and `public/css/**/*.css`.

### Output

Directory path and file name of generated build file.

**Default:** Assuming default Elixir JS output path, the file will be placed at `public/js/modernizr.js`.

### Customizr options

`gulp-modernizr` passes options to [Customizr](https://github.com/doctyper/customizr). You can see them [here](https://github.com/doctyper/customizr#config-file).

## All credit goes to

* [doctyper](https://github.com/doctyper) for his awesome [Customizr](https://github.com/doctyper/customizr) tool
* His [gulp-modernizr](https://github.com/doctyper/gulp-modernizr) Gulp wrapper.
* All contributors to the [Laravel Elixir](https://github.com/laravel/elixir) project.

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