-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
classPrefix is not working #20
Comments
+1 |
Any news? |
+1 |
+1... |
It seems this functionality is already merged into develop, not yet in master though :( in
with:
now you can use it in your gulpfile like so:
|
Perfect. I will try it out 👍 |
+1 |
thanks @dasblitz, you'll also need to update |
+1! Apparently, the fix was already merged in the develop branch pull request #16 . Please also apply to master branch, so dependent packages/modules can also benefit this feature. |
Any update on this, seems it's still not included in the version with comes with npm install, could we make that happen, soon? |
For the love of Jebus, someone, anybody, please merge this into master... |
+1 |
finally managed to get the fix merged and released in v1 @Tokimon can you check and close this issue? |
Apparently I don't get my messages from github, so I only just saw this. |
I have tried to create a build with the setting
classPrefix: 'has-'
from gulp, but the setting doesn't work, and as the gulp-modernizr is really just passing in the config to customizr, I write the issue here:has-xxx
, so correct tests are not initialized.I did some digging and it seems that the legacy property
cssprefix
is still used in the code:Hence I need to pass in
cssprefix: 'has-'
instead ofclassPrefix: 'has-'
before it works, but that contradicts the fact that the property name has been changed toclassPrefix
(see #8).If I change the line indicated to
prefix = settings.classPrefix || ''
the crawler finds the correct properties with thehas-
prefix.But unfortunately the prefix is still not passed on to the final Modernizr script and right now I have no precise idea why.
Below is the Gulp setting I have used:
As a side note; I think it is a bit strange that
setClasses
is not added to the default list of options, as personally I have never used Modernizr without wanting to use the classes as well.Related issues
Modernizr/grunt-modernizr#30
#8
The text was updated successfully, but these errors were encountered: