I have tried and failed in another project to get the custom modernizr.js created by gulp-modernizr the way we do in this template, to work. I ended up dropping all that from our gulpfile and just downloading a custom modernizr.js from the modernizr website and loading it in the page head, but it would be nice to get this working too at some point.
(By not working, I mean even after using a hack to get a reference to the Modernizr object (off the window), it would detect features and you could tell the results on the Modernizr object, but it never updated the classes on the html element so we couldn't use the results in our style sheets.)
I have tried and failed in another project to get the custom modernizr.js created by gulp-modernizr the way we do in this template, to work. I ended up dropping all that from our gulpfile and just downloading a custom modernizr.js from the modernizr website and loading it in the page head, but it would be nice to get this working too at some point.
(By not working, I mean even after using a hack to get a reference to the Modernizr object (off the window), it would detect features and you could tell the results on the Modernizr object, but it never updated the classes on the html element so we couldn't use the results in our style sheets.)