customizr
customizr copied to clipboard
customTests not working with Modernizr v3
I don't seem to be able to get the customTests option to be able to work.
TypeError: Cannot read property 'replace' of undefined
at /Users/joelambert/Projects/Misc/primer-rareloop/node_modules/grunt-modernizr/node_modules/customizr/node_modules/modernizr/lib/build-query.js:22:22
I've had a bit of a look and it seems that the v3 version of Modernizr expects all tests to be from the core repository. Might it be better for Customizr to append the contents of files in the customTests array to the file produced by the Modernizr build script rather than trying to pass them through?
Same problem here. For the custom tests no meta data is generated and therefor it is failing to build.
+1!
Have this problem too.
Either Modernizr adds a means for adding custom tests by a file path to their new v3.x API (https://github.com/Modernizr/Modernizr/blob/master/lib/config-all.json) or this module (customizr) has to add them on top of Modernizr.
Any plans on how to add this missing sub-feature?
With best regards
Wouldn't it just be possible to concat the custom tests to the Modernizr file?
Modernizr build seems to also do other things with the test files, like stripping comments, etc. and it uses requirejs which does more than just concatenating. Wouldn't this duplicate the build logic or lead to different results than a normal Modernizr test?
Well, I haven't looked into this in detail, but I guess as a workaround I could just concat the Modernizr file with my own tests and everything will work fine, right?
+1
+1
+1
+1