Updating the modernizr from 2.x to 3.x

923 Views Asked by At

I want to update a Modernizr and I don't know how to do this. In version 3.x there are other options. The comment looks like this:

Modernizr 2.6.2 (Custom Build) | MIT & BSD
 * Build: http://modernizr.com/download/#-csstransforms3d-shiv-cssclasses-teststyles-testprop-testallprops-prefixes-domprefixes-load

Thank you!

1

There are 1 best solutions below

1
Miloš Đakonović On BEST ANSWER

Modernizr can be updated by generating a custom build on project site:

https://modernizr.com/download

This way the browser features that will be tested has to be selected.

Based on comments of provided existing v2 dist, the v3 equivalent would be: https://modernizr.com/download?csstransforms3d-prefixed-prefixedcss-prefixedcssvalue-setclasses-shiv-testallprops-testprop-teststyles

Note: Modernizr.load is deprecated and removed from v3.