If I look on http://modernizr.com/download/ I have ~100 checkboxes and I have no clue what is required for this module.

Comments

devin carlson’s picture

Component: Code » Documentation
Category: bug » task

This should definitely be documented, but in the mean time:

  • Use the following link (mentioned in the hook_libraries_info() implementation) to grab a preconfigured version of Modernizr: http://modernizr.com/download/#-inputtypes-svg-touch-cssclasses-addtest-...
  • Rename the resulting file to modernizr.min.js
  • Place the file in sites/all/libraries/modernizr (or a site specific folder as required), so the modernizr file can be found at sites/all/libraries/modernizr/modernizr.min.js
jessebeach’s picture

Issue summary: View changes
Status: Active » Closed (fixed)

I added these instructions to the project page. Thanks!

theohawse’s picture

This is all fine and dandy... but I see no way to get a hardlink to the custom modernizr build..

I need to put the new library in my drush make file, but there's no link to use?

Cant keep manually adding the file every time I build a new platform.

wim leers’s picture

This issue is closed. That link was only broken recently. Please see #2158743: Preconfigured Modernizr download link broken; precise instructions missing.

realityloop’s picture

I've created a repo that you can reference here:
https://github.com/BrianGilbert/modernizer-navbar

Drush make config to grab the correct version (2.7.1 with minified js version) is:

libraries[modernizr][download][type] = git
libraries[modernizr][download][url] = https://github.com/BrianGilbert/modernizer-navbar.git
libraries[modernizr][download][revision] = 5b89d9225320e88588f1cdc43b8b1e373fa4c60f

tomdavidson’s picture

Can we just include modernizer module as a dependancy? It has a drush file to install the correct library
https://www.drupal.org/project/modernizr
http://cgit.drupalcode.org/modernizr/tree/drush/modernizr.drush.inc

tomdavidson’s picture

tomdavidson’s picture

Priority: Critical » Normal
Status: Closed (fixed) » Needs review

Sorry if I am making a mess of things, I did not realize this issue was closed. It does not seem solved, for example, check out the related downstream issue in webkit that uses navbar.

tomdavidson’s picture

StatusFileSize
new308 bytes
hass’s picture

Status: Needs review » Closed (won't fix)

This module does not required the modernizr module.