https://github.com/divspace/elixir-modernizr
Scan your resources and generate a custom Modernizr build for your app
https://github.com/divspace/elixir-modernizr
Last synced: about 1 month ago
JSON representation
Scan your resources and generate a custom Modernizr build for your app
- Host: GitHub
- URL: https://github.com/divspace/elixir-modernizr
- Owner: divspace
- Created: 2016-04-15T18:11:28.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-15T18:12:16.000Z (about 10 years ago)
- Last Synced: 2025-10-08T10:46:59.343Z (8 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
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.